News for hackers. Stuff that matters.
Re:30 Favorite Visual Studio Keyboard Shortcuts by giu on Wednesday June 09, 2010 @08:55AM (#1416852)
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.

Re:30 Favorite Visual Studio Keyboard Shortcuts by spoiledtechie on Wednesday June 09, 2010 @02:35PM (#1417835)
please do publish it...
Re:30 Favorite Visual Studio Keyboard Shortcuts by giu on Wednesday June 09, 2010 @05:06PM (#1418290)
In case somebody's still interested in the cheat sheet, I just published it on my journal: http://giu.me/09-06-2010-visual-studio-2008-and-2010-default...

Google viewer: http://docs.google.com/viewer?url=http%3A%2F%2Fgiu.me%2Ffile...

Direct link (PDF): http://giu.me/file/VisualStudio20082010DefaultKeyBindingsSim...

@spoiledtechie I've sent you the links via mail ;)

Re:30 Favorite Visual Studio Keyboard Shortcuts by johns on Wednesday June 09, 2010 @06:20PM (#1418500)
This needs a little updating, but I've maintained this page forever: http://john-sheehan.com/blog/net-cheat-sheets
Re:30 Favorite Visual Studio Keyboard Shortcuts by jasonkester on Wednesday June 09, 2010 @09:51AM (#1416958)
It's interesting to see how many of the things that you used to only be able to do with ReSharper are now standard VS.NET features. Strange though that Microsoft didn't keep the ReSharper keyboard shortcuts when they adopted the features, especially since the R# ones are often a lot more intuitive.

CTRL+/ (and SHIFT+CTRL+/) to comment (and block comment) selections, for instance is so intuitive that you discover it by accident. Same with the variants on SHIFT+CTRL+SPACE for various smart-completion tasks. CTRL+. (VS.NET's shortcut for smart completion) is not something I'd ever think to try unless I already knew it.

Re:30 Favorite Visual Studio Keyboard Shortcuts by yread on Wednesday June 09, 2010 @08:37AM (#1416822)
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 by spoiledtechie on Wednesday June 09, 2010 @02:38PM (#1417845)
the clipboard ring doesn't seem to work too well.
Re:30 Favorite Visual Studio Keyboard Shortcuts by johns on Wednesday June 09, 2010 @06:21PM (#1418506)
Really? Do you have some other clipboard manager installed? I never have any problems with it. Just keep hitting the shortcut over and over again to cycle through them. Sadly they removed the old toolbar that showed you everything on the ring.
Re:30 Favorite Visual Studio Keyboard Shortcuts by unwind on Wednesday June 09, 2010 @08:30AM (#1416815)
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 by bad_user on Wednesday June 09, 2010 @09:51AM (#1416959)
I just use the US layout, and when I press Right-Alt it switches to my native language's layout (which I can use efficiently because I can touch-type).

Just embrace English as the lingua franca of programming and you'll be better off.

Re:30 Favorite Visual Studio Keyboard Shortcuts by unwind on Wednesday June 09, 2010 @01:05PM (#1417562)
Heh. I've certainly embraced that, for a good number of years. But that doesn't mean I need to use an English keymap, although I did fight that battle for a great while back on the Amiga, 15+ years ago. :)
Re:30 Favorite Visual Studio Keyboard Shortcuts by gokhan on Wednesday June 09, 2010 @08:50AM (#1416847)
Re:30 Favorite Visual Studio Keyboard Shortcuts by ecaradec on Wednesday June 09, 2010 @10:08AM (#1417010)
"CTRL + :" then "of" -> focus the command line window then open file by name with completion. Great for navigating among files.
Re:30 Favorite Visual Studio Keyboard Shortcuts by rodh257 on Wednesday June 09, 2010 @09:17AM (#1416887)
Shift + Delete is my favourite. It cuts the current line, which I use as an easy way to delete a whole line at a time.
Re:30 Favorite Visual Studio Keyboard Shortcuts by bmahloch on Wednesday June 09, 2010 @09:40AM (#1416937)
For Unit Tests CTRL + R + T - debugs the current test. I always think to myself CTRL + Run + Test.
Re:30 Favorite Visual Studio Keyboard Shortcuts by bunglebooz on Wednesday June 09, 2010 @08:25AM (#1416806)
I always use the Ctrl + Period (.) and Ctrl + Hyphen (-)
Re:30 Favorite Visual Studio Keyboard Shortcuts by pcestrada on Wednesday June 09, 2010 @09:17AM (#1416886)
ALT-F4 - close application immediately