25 Aralık 2009 Cuma

Useful and Funny Visual Studio Shortcuts

* prop + tab + tab : implements properties automatically

  Ex: public int myProperty {get; set;}

* ctor + tab + tab : creates constructor of the class.

* Shift + Alt + F10 : Adds the namespace of an object into "using" part. Do it when the mouse is on the object.

* Select all the "using" part + right click ->  "Organise Using" -> "remove unused usings"  removes unused namespaces or you can sort the namespaces by "sort usings" option.

* Ctrl + k + c : comments the selected line
* Ctrl + k + u : uncommens the selected line

* Ctrl + shift + alt : opens the window of "add new item to the solution" Ex: add class, add form vs..

* Ctrl + tab : make you navigate in the open pages in solution
* right click on a page and select the option "close all but this" : closes all pages except the page you right clicked on.

* When you look at the properties of an object by adding a dot after the name of object, a combobox is opened and you can not see the code behind the combo..in that moment if you push the ctrl button long, the combo will be transparent and you can see behind of it...


Hiç yorum yok:

Yorum Gönder