← All articles

Shortcut: Including a Namespace

Without ReSharper, the Visual Studio shortcut to auto-include a missing namespace changed in VS2010: it's now Ctrl+. instead of Shift+Alt+F10.

Donn Felker

Donn Felker

2010.01.11 · 1 min read

**UPDATE**: I’ve been fat-fingering everything lately. I messed up and typed the comma, when I meant a period. I have updated the post to reflect the proper fix. 

Right now I have ReSharper turned off on my client’s machine because it bogs down the machine. There’s a lot of encryption going on to the hard drive so my guess is that this is the culprit. Reason being: I can run VS2010 with ReSharper installed on my laptop and its smoking fast, and it has 1/2 the power of the desktop. Odd.

Since I’m not using ReSharper I need a way to quickly include namespaces of a type that I’m using. Up until now, that shortcut has been SHIFT + ALT + F10.

This is not the case with VS2010.

The shortcut is now CTRL + .

That will give you a little popup menu asking if you’d like to include the namespace in the current file. You can do all of this from the keyboard, therefore saving yourself some time.

Donn Felker

Written by Donn Felker

I've spent 25+ years shipping software, writing books, and running my own companies. I write about thinking clearly, working for yourself, and doing real work while AI rewrites the rules. New essays land here every week.

Get the newsletter

Keep reading