Welcome to the Treehouse Community
Looking to learn something new?
Branko Zivanovic2,684 Points
This guy is selecting lines of code only with keyboard.How?
Title says everything.When I want to select few lines of code I do it by leftclicking and dragging down to select what I want to be selected, but this guy is doing all job with keyboard controls.How? Thanks
Try different combinations of holding shift, command and arrow keys. For example command + right arrow will take you to the end of the line you're on. Command + left arrow takes you to the beginning. Command + shift + right arrow will highlight from the cursor to the end of the line. Shift + up or shift + down will highlight the line above or below. Command + shift + down arrow will select everything from your cursor to the end of the file. Play around with it. Cheers
He is doing it with the shift + arrow keys. If you want to select a line of code starting left to right, you simple arrow key over to where you wish to start, hold down shift, and use the arrow keys accordingly! Don't forget to mark best answer if this helped!