Live data from Hacker News

30 Favorite Visual Studio Keyboard Shortcuts

devcurry.com

1–10 of 20 posts

Re: 30 Favorite Visual Studio Keyboard Shortcuts

#4
It's note to note that these seem to be implemented "ergonomically" rather than just by character.

On US keyboards, the opening bracket [ is easily available, while on e.g. Swedish keymaps you also need to press the Alt Gr key to get [ (it's at Alt Gr + 8).

Still, in Visual Studio the same physical key that is [ on US keyboards works as listed in this article, i.e. Control + å matches brackets. Nice!

Re: 30 Favorite Visual Studio Keyboard Shortcuts

#5
Also of interest are:

Ctrl + K, D - Formats document

Ctrl + K, X - Opens snippet picker

Ctrl + Shift V - Pastes text from the Clipboard ring (did you know that Visual studio has clipboard ring? :)

Ctrl + R, M - Extracts method

F2 - rename identifier (and its references)

Re: 30 Favorite Visual Studio Keyboard Shortcuts

#7
My favorite keyboard shortcuts:

- CTRL + HYPHEN(-) for navigating backwards

- CTRL + SHIFT + HYPHEN(-) for navigating forwards

- CTRL + PERIOD(.) shows the smart tag, because almost nobody can hit that small rectangle with the mouse

- CTRL + SHIFT + F, Find in Files. I use this one quite often (mostly for a search in the entire solution); it's very fast and displays all the results in a separate window

- SHIFT + F12 (or CTRL + K, R) finds all references

On a sidenote: I've created a reference card including most of the VS keyboard shortcuts mentioned in the article and some more (I'm using it at work; looks pretty good printed). Too bad I didn't upload it yet. Looks like I'm going to publish it this evening on my journal.

Post reply on HN