Visual Studio (2005,2008,2010) Tips and Tricks.
#57 [Ctrl]+[J] invokes statement completion
Friday, March 06 2009
In the default general development settings, the keyboard shortcut to invoke statement completion is [CTRL]+[J]. The keyboard shortcut is bound to Edit.ListMembers, so you may need to confirm what your keyboard shortcut is.
Snippets / Notes:
In the Text Editor Toolbar, you can invoke statement completion via the Show Member List button.
This work is licensed under a Creative Commons license.
Visual Studio Tip / Trick #057 English Transcription:
Today's Visual Studio Trick of the Day No. 57 is a video recast of Sara Ford’s original tip 57.
The tip is statement completion and showing list members. You can see on screen here we have a new class, var p = new Product(); You guys know IntelliSense, p [dot] will show me the product ID and Name, that gives me the list members. You guys are probably used to [CTRL]+[SPACE], which will bring up the IntelliSense. So we can just say, the new product is say a Telephone and now if we go back over name, with my statement already there, if I do [CTRL]+[SPACE], which is statement completion, it just says oh you must want the name, because that’s the only thing that matches. So here’s the trick, [CTRL]+[J] will display those list members for you, which is different than the statement completion. Because statement completion uses what you already have to complete your statement, [CTRL]+[J] just pops up that window. Now you can navigate through and if you just want to change something, like I’ve just don’t to ID, you simply press [ENTER] or [TAB] to select that item. Now incidentally you can also look in the Menu here, and depending on your keyboard bindings, a pop-up will show you, if you have those turned on, what the keyboard binding is. So you can also use this as [CTRL]+[K]+[L] which is a little bit more harder to remember than [CTRL]+[J] and then finally under Edit, IntelliSense, you can see list members and what your keyboard bindings is there, [CTRL]+[K]+[L]. We’ll see you in the next video trick.
0 comment(s)