Expanding/Shrinking Selection
Use your keyboard to quickly select the portions of code that you need.
Use Extend Selection to quickly select parts of your code using semantic knowledge about it.
Selected too much, or using an already existing selection, and want to reduce the selection scope? Use the complimentary Shrink Selection feature.
Press ⌥↑ (macOS) / Ctrl+W (Windows/Linux), to Extend Selection.
Press ⌥↓ (macOS) / Ctrl+Shift+W (Windows/Linux) to Shrink Selection.