Tips and Tricks for the Visual Studio .NET IDE
Ditulis oleh arifw di/pada Kamis, 24 April 2008
A compendium of short cuts, tips and tricks, features, whatcha-may-callits for the Visual Studio .NET IDE. I love Vim. And the power it gives is almost corrupting. Actually it This works similar to *recording* in Vim. If you think you are going The Toolbox To incrementally search for text as you type, first press Press Alt and then select the area you want with your mouse. There are a bunch of necessary/useful windows in the Visual Studio IDE like Properties ( Open the window you want. Right click on its title and choose Auto If you have many source code windows open, you can group them The Task List window ( By default, comments marked with a TODO will appear in the task list. You can add your own set of comment tokens (like the TODO comment token). Goto Add a shortcut to the task list with Press Press or If you want to set this option for only one language, then choose the appropriate language instead of If you want to set this option for only one language, then choose the appropriate language instead of Customizing Visual Studio’s Code Generation Templates. MSDN. Your IDE also functions as a browser. To see your list of favorites, press Bookmarks are available through I like this feature that allows me to hide code that is irrelevant to what I’m currently working on.
is corrupting. Which is why I try to see if any editor provides all the
functionality provided by Vim. Visual Studio .NET has quite a lot of
useful options. Many of them are out there in the open in the menus but
I did not see them for long until I went hunting for them. Some others
are very obvious, but when I show them to some people, they are amazed
that I can do that; so I have included some of those too. So here is a
list of useful hints that I gathered. If you have any more, please do
send them and I’ll add them here with due recognition to the
contributor.
By the way, I do not take credit for these hints but I
will take credit for putting them together from various sources on the
net.1. Record and play temporary macro
Ctrl+Shift+R to record a new temporary macro. Press Ctrl+Shift+R to stop recording. Ctrl+Shift+P to play the recorded macro.
to be repeating a set of keyboard keys, then record them once and play
them each time after.2. Multiple copy/pastes
Ctrl+Shift+V cycles through the clipboard
ring. You can copy/cut multiple times from one area of code, then go to
another area and paste them one after another.3. Drag and drop code snippets
(Ctrl+Alt+X) window has
multiple tabs. You can drag and drop code onto this window and copy it
elsewhere. Some tabs do not allow dropping code into them; those that
allow will have the appropriate icon. The General tab works for me.4. Previous cursor positions
Ctrl+- i.e. Ctrl + Hyphen. This cycles you through the code positions you visited.Ctrl+Shift+- to navigate in the opposite direction.5. Incremental search
Ctrl+i.
Then type the word you want to search. Hit backspace to clear a
character and enter to finish. Pressing F3 after this will work as
usual, i.e. search for the next occurrence of previous search.Ctrl+i – Ctrl+i works like F3.6. Matching brace/comment/region/quote
Ctrl+] takes you to the matching brace. It
also takes you to the matching comment, region or quote depending on
what is at the cursor now.7. Vertical block selection
8. Closing/Showing support windows
F4), Solution Explorer (Ctrl+Alt+L), Output Window (Ctrl+Alt+O), Task List (Ctrl+Alt+K) etc. However, they take up a lot of space. An easy way around this is to use the auto hide feature.
Hide. The window will dock in whenever your mouse is not hovering over
it.9. Tab groups – group code editor windows
logically using tab groups. Right click the tab of the code window and
choose New Horizontal Tab Group. This will
move the window into a split window, allowing you to see both files.
You can add more files to this new tab group and also move files back
to the previous group by choosing Move To Previous Tab Group.10. Track things you have to do with Task List
Ctrl+Alt+K) allows you to keep track of the things you have to do. Right click on the Task List window and choose Show Tasks|All to see a list of tasks. Ctrl+Shift+F12 to cycle through your list of tasks.11. Edit Task List Comment Tokens
Tools|Options|Environment|Task List|Comment Tokens and make your changes. You can change the priority appearance of each comment token too.12. Add Task List Shortcut
Ctrl+K, Ctrl+H. This will add the current line to the task list.13. Auto-complete
Ctrl+Space or Alt+RightArrow to auto-complete the word. Intellisense suggestions may pop up a window if there is more than one possibility.14. Intellisense suggestions window
Ctrl+Shift+Space to bring up the
intellisense suggestions window. When giving parameters for functions,
I often need to escape the suggestions window to check another part of
code. To bring it back, I used to delete a comma and then type it
again; but this is easier.15. Word wrap
Ctrl+R Ctrl+RTools|Options|Text Editor|All Languages|General|Word WrapAll Languages.16. Line numbering
Tools|Options|Text Editor|All Languages|General|Line numbers.All Languages.17. Customizing Visual Studio’s Code Generation Templates
18. Default Shortcut keys
19. Favorites window
Ctrl+Alt+F or choose View|Other Windows|Favorites.20. Bookmarks
Edit|Bookmarks. Bookmarks allow you to mark places in your code that you would want to come back to.
Ctrl+K, Ctrl+K
Ctrl+K, Ctrl+N
Ctrl+K, Ctrl+P
Ctrl+K, Ctrl+L 21. Code Formatting
Ctrl+K, Ctrl+F
Ctrl+U
Ctrl+Shift+U
Ctrl+K, Ctrl+C
Ctrl+K, Ctrl+U 22. Outlining
Ctrl+M, Ctrl+M
Ctrl+M, Ctrl+L
Ctrl+M, Ctrl+P
Ctrl+M, Ctrl+O 23. Build and Debug
By SathishVJCtrl+Shift+B
Ctrl+F5
F5
F8

XYFloyd berkata
hey man i love your site.. your friend michael told me you were looking for a new way to earn some extra income online.
i own an awesome website where you can make money online..most our users are making like 20-50 bucks a day.. with minimal work.. its pretty simple to do.. its actually so easy to do you won’t believe ill actually pay you to do it.. and its 100% free to sign up and try.
another positive about my site unlike all the other sites.. i will pay you out daily.. so you earn 5 bucks in the first 5 minutes you work on my site.. request a payout and i will pay you out right then.. i guarantee no other sites like mine will pay out daily multiple times..
i’d be glad to help you.. if you sign up..
http://tinyurl.com/5lsjhh