Tuesday, January 24, 2012

Visual Studio --- Getting Around - 1

Tip 1: Assign shortcut key to Visual Studio


Let's start with Visual Studio 2010.


How do we start Visual Studio usually?


Clicking on the short cut icon in the desktop.
or
Start->Microsoft Visual Studio 2010 
or
Start -> Program Files -> Microsoft Visual Studio 2010
or type the below in Run:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe


Alternative Way using Keyboard


Instead of clicking on Visual Studio Icon, just right click. you will get the below Context Menu, as below.






In the context menu click Properties. Now you will get a window like the below:




By Default Shortcut key will not be assigned for applications installed in Windows.


Shortcut key: None


We can assign our own key:


Go to Shortcut Key, text box. Just Press V (or the key you would like to use)


Now it will appear as below


Shortcut key: Ctrl + Alt + V




Click OK  at the bottom, for this shortcut key to be assigned.  You are done!  


Just one more tip (Be cautious before you make this and know what you are doing):


Not all .NET programs are required to run with Administrator privileges. Before you make this, carefully evaluate and do. Don't run any programs downloaded from internet, using this, before you know what you are doing & its impact.  


Sometimes we need to run our programs as Administrator. For example say opening a Port in a WCF program/Socket program requires administrative privileges. If you want to run programs using Visual studion to run in Adminstrator mode, you can configure in the same window.  


Just click Advanced  and select  "Run as Administrator"


This setting is not required always.  So make sure that its not selected by default.  Only When you need, do it




[Note: This is a general tip.  Shortcut keys can be assigned for any programs in Windows. But make sure you assign short-cut keys only for applications which you regularly use in day-to-day life.  Otherwise too many shortcut keys, we may not remember]


Happy Coding and better use of Visual Studio & Windows...

No comments:

Post a Comment