Navigating through code with keyboard shortcuts
Posted
by MarceloRamires
on Stack Overflow
See other posts from Stack Overflow
or by MarceloRamires
Published on 2009-12-11T13:44:14Z
Indexed on
2010/04/15
20:13 UTC
Read the original article
Hit count: 263
keyboard-shortcuts
|Tips
I'm starting to feel the need to run fastly through code with keyboard shortcuts, to arrive faster where I want to make any changes (avoiding use of mouse or long times holding [up], [left], [right] and [down]).
I'm already using some:
[home] - first position in current line
[end] - last position in current line
[ctrl] + [home] - first line of the entire code
[ctrl] + [end] - last line of the entire code
[pageup] - same vertical position, one screen above
[pagedown] - same vertical position, one screen below
[ctrl] + [pageup] - first line in current screen
[ctrl] + [end] - last line in current screen
[ctrl] + [left/right] - skipping word per word
What have you got ?
I use Visual Studio. (but I'm open to any answer, as I maybe can use others soon)
obs: I've searched through stackoverflow and didn't find a nice question with this content, nor a list of keyboard code searching. If it's repeated, I'm sorry for not finding it, I'm here in my best intentions.
This question is NOT about any shortcuts, and not only about visual studio, it's about running through code with shortcuts.
Answers that suit the question so far:
[Ctrl] + [-] - jumps to last cursor position
[Ctrl] + [F3] - Jumps to next occurance of the word the curson is in
[Shift] + [F3] - Same as the above, backwards.
[F12] - Goes to definition of method/variable the cursor is in
[Ctrl] + [ ] ] - Jumps to matching brace and select
I'll ad more as there are answers.
© Stack Overflow or respective owner