"...since my intention is to write something useful for anyone who understands it, it seemed more suitable to me to search after the effectual truth of the matter, rather than its imagined one."
-Niccolo Machiavelli in The Prince, 1532

Thursday, November 29, 2007

Effective Use of Visual Studio 2005 - Named Commands

Command Window: Ctrl+Alt+A

Named commands are used to access VS features from Command Window. Visual Studio 2005 provides full intellisense support in the command window. I experienced that using named commands is much faster than accessing these features with mouse.

Named commands allow you to access and use menu commands in the command window. To use named commands, simply type the name of menu. Press '.' and VS will provide intellisense. Type the name of the menu option or select it from intellisense.

Example:

To access Find Results 1 window you have to

1. Click on the 'View' menu and then
2. Click on the 'Find Results' and
3. Finally choose 'Find Results 1'.

Now if you want to use named commands,
1. Press Ctrl+Alt+A to activate command window.
2. Type View.findresults1. You don't need to type full text. Intellisense provides yoy write text. Just press enter.

Some Examples of Named Copmmands:

  • Window.NewWindow: Open a new window on your code.
  • Tools.Options: Bring up Options dialog box.
  • Edit.ViewWhiteSpace: (Ctrl+R, Ctrl+W) Replace white spaces with a dot.
  • Convert tab to spaces: Ctrl+K, Ctrl+D
  • Window.ActivateDocumentWindow: Switch to document window.
  • Window.AutoHide: Hide command window. (Use Ctrl+Alt+A to show command window)
  • Window.AutoHideAll: Hide all windows except document windows. It will hide even pinned-up windows too.
  • Window.ShowEzMDIFileList: Show Easy MDI File List.
  • Window.Split: Split code window into two. Both windows show same files but you can scroll them independently. Issue same command to close splitting.
  • Window.Windows: Open 'Windows'  window. More Info
  • Edit.ClearAll: Clear Command Window.

Named Command and Keyboard Shortcuts

Usually VS features can be accessed in two ways: using keyboard shortcusts or  using named commands. But using named commands is easier than using keyboard shortcuts:

  1. You need to learn keyboard shortcuts. But named commands are not required to learn, as they are based of the menu navigation which is most commanlyt used.
  2. Keyboard shortcuts are customizable. You (or anybody else) can change them. If you are working on some other machine, you may not have same keyboard shortcuts.
  3. There is no help (intellisense) provided for keyboard shortcuts.

Images:

1. Easy MDI File List

EzMdiFileList

2. Split code window
Untitled

 


 

1 comments:

Douglas said...

Found your blog while Blogger-surfing...stop by Crossword Bebop sometime...

Post a Comment

Quotations


हमें अपने देश की आध्यात्मिक शिक्षा और सभी प्रकार की एहिक शिक्षा अपने हाथ मे लेनी होगी और उस शिक्षा मे भारतीय शिक्षा की सनातन गति स्थिर रखनी होगी। साथ ही सनातन प्रणाली को यथा संभव ग्रहण करना होगा। - स्वामी विवेकानन्द

परिस्थिति कैसी है, इस पर कुछ भी निर्भर नहीं करता। हम परिस्थिति को कैसे लेते हैं इस पर सब कुछ निर्भर करता है। - ओशो

People go along with the fellow who believes what he says. Say it with life.Put vitality into your speaking. ... And when you put life into your talk, you automatically put more life into you." - David J. Scahwartz (From The Magic Of Thinking Big)

संपूर्ण प्रतिबद्धता का अर्थ केवल कडी मेहनत नहीं है। इसमें पुर्णरूप से शामिल होने का पक्ष बहुत महत्वपुर्ण है। ... जो लोग अपने पेशे मे शीर्ष पर पहुंचना चाहते हैं, उनके भीतर पुर्ण वचनबद्धता का मूलभूत गुण होना बहुत ज़रुरी है। पूरी क्षमता के साथ काम करने की इच्छा के बाद मुश्किल से ही कोई इच्छा जन्म ले पाती है। ... शीर्ष पर पहुंचने के लिये दृढ इच्छा शक्ति जरुरी होती है, चाहे वह माउंट एवरेस्ट हो या आपके कार्यक्षेत्र का शीर्ष। हर व्यक्ति अलग - अलग ऊर्जा लेकर जन्मा है और जो सबसे पहले प्रयास करेगा और अपनी ऊर्जा का इस्तेमाल करेगा, वही सबसे जल्दी अपने जीवन को सुव्यवस्थित कर पायेगा। - डा. ए. पी. जे. अब्दुल कलाम, राष्ट्रपति, भारत सरकार (अग्नि की उड़ान से) (From Hindi translation of his autobiography, Wings of Fire)

हमें रचनात्मक सुझाव देने चाहिये। यह काम बुरा हुआ इसकी उतनी अधिक व्याखया करने की ज़रुरत नहीं है जितनी कि सुधार के लिये जो किया जा सकता है उसका सुझाव देने की। सुझाव रचनात्मक होते हैं। उनसे दिशा मिलती है और लाभ होता है। किन्तु भर्त्सना से मन छोटा होता है। तिरस्कार के फलस्वरुप द्वेषभाव की खाई चौड़ी होने के अतिरिक्त और कोई प्रयोजन सिद्ध नहीं होता। गलती से होने वाली हानी और सुधार का तरीका अपनाने का लाभ तुलनात्मक रीति से समझाया जा सकता है। - पं० श्रीराम शर्मा आचार्य ('मन की प्रचण्ड शक्ति' से)

Between Stimulus and response, there is a space. In that space lies our freedom and power to choose our response. In our response kids our growth and happiness. - Stephen R. Covey (From 7 Habits of Highly Effective People)

Seek ye first the kingdom of God, than all shall be added unto you. - anonymous

The mind is a wonderful servent but a terrible master. -Robin Sharma (From The Monk Who Sold His Ferrari) 

When you are inspired by some great purpose, some extraordinary project, all of your thoughts break their bonds: your mind transcends kimitations, your consciousness expands in every direction and you find yourself in a new, great and wonderful world. Dormant forces, faculties and talents becomes alive and you discover yourself to be a greater person than you ever dreamed yourself be. -Robin Sharma (From The Monk Who Sold His Ferrari) 

Latest News

Loading...