开发者

Most useful Visual Studio capabilities and tools [closed]

Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 7 years ago.

Improve this question

I feel like I've been neglecting this powerful tool and not using it to full capacity. Wha开发者_JAVA百科t are the most useful Visual Studio capabilities or tools that you use most often?


Ctrl+K, Ctrl+D


Reformat your Code
And you can also press Ctrl+K, Ctrl+C to comment a block of code, Ctrl+K, Ctrl+U to uncomment a block of code.
There is somthing I really like in VS where you can press F12 to go to the defenition of a variable or class...etc


Auto-completion of certain structures like for/while/switch/try etc when you hit your tab key twice after typing the first keyword, e.g: type "for" and then hit tab twice. Love it! :)


Pressing Ctrl + . will bring up a list of availible namespaces for an object when you finish typing out the Type.

It saves a of a lot of time when you don't remember the namespace that a your newely entered type belongs to. It's also useful for those lazy moments where you don't want to leave the line of code you're on to type out a using statement at the top of your class.


I know it's not part of VS, but Resharper is awesome.


Finding all references to a function or a variable within my solution.


Mixed language debugging.


Attaching the debugger to an already running process.


All of the internal refactoring capabilities. The most useful, for me, is Encapsulate Field. I hate manually writing simple property getters and setters. Another great one is the rename feature, although this isn't unique to only VS.

Also, VS has the best Intellisense, in my opinion, especially when compared to Eclipse and Netbeans. They have pretty good Intellisense, but not as accurate or as helpful as VS.

And finally, the Object Browser. The Object Browser is a great way to search for a method or property that you know exists, but can't find. It's also good for exploring undocumented (or poorly advertised) functionality.


Alt + Shift + Down Arrow

Select multiple lines of code and edit them all at once - I don't use it that often, but when I do it comes in handy!


ctrl + ,

is probably my favorite. Navigate To: type in your search and walla, open quickly.

This only works for VS 2010


The WinForms designer is very handy and powerful. What I like most is that GUI descriptions are not buried in some "binary graveyard". They are expressed in human-readable code which can be globally searched/replaced, diffed etc.


Debugger step through - very handy feature.


Attach to Process and Remote Debugging


I think the below link is very handy

http://www.dofactory.com/reference/visual-studio-shortcuts

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜