#33 Selection Extending & Shrinking

Press Alt+Up (Ctrl+W on Windows/Linux) to extend the selection from the cursor’s location to the encompassing code contexts.

From the example above, the selections being made are as follows:

  1. Variable name (excluding ‘$’)
  2. Variable element (including ‘$’)
  3. Expression
  4. Line
  5. Foreach body
  6. Foreach block
  7. If body
  8. If block
  9. Method body
  10. Method block
  11. Class body
  12. Class block
  13. File contents

Press Alt+Down (Ctrl+Shift+W) to shrink the selection.

Further Reading

comments powered by Disqus