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.
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.
: 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:
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.
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.
There is no help (intellisense) provided for keyboard shortcuts.
1. Easy MDI File List
2. Split code window
Visual Studio 2005 provides some excellent document management capabilities. Most of the we are not aware of these features. One of the feature is open document tab groups. Unlike VS 2003, it shows only as much tabs as fits in the window width. There is no scrolling. Instead, VS 2005 provides dropdown menu to select from all open documents. Inseated of selecting open documents, you can also do some other functions.
I am planning to write a series on useful-but-less-known features of VS 2005. This is second post in the series. (read
In continuation to my previous post on managing open documents, here are some more tricks.
Right click on the open document tab group. A context menu will appear with following options:
Close all but this
Copy full path
Open containing folder
New horizontal tab group
New vertical tab group
Allows you to save currently selected document. Currently selected document is the one which is open in the window.
Close currently selected document.
Close all but this
Close all open documents except the currently selected document.
Copy full path
Copy full path of the currently selected document to the clipboard.
Open containing folder
Open the folder that contains the currently selected document. The folder is opened in the windows explorer.
New horizontal tab group
Open another document window. The two windows are tiled horizontally. Both window will have document tab group. This is useful when you want to open on two group of documents simultaneously.
New vertical tab group
Same as above option. But this makes the windows tiles vertically instead of horizontally.
To close open documents selectively:
1. Go to Window -> Windows.
2. This will show list of all open windows (not just those which you see on the tabs).
3. Select the windows you want to close. Use shift (or ctrl) key for multiple selection. You can also use ctrl+A to select all windows.
4. Click “Close window(s)” button to close selected windows.
I experienced that the speed of loading a project into visual studio is directly proportional to the number of open documents. Generally, we open the document as we need it. And then we don’t close it. Visual studio 2005 displays only a few number of documents on the tabs. Rest remains open but are hidden. You can click on the down arrow near the ‘X’ button of the document window to select the open document. To keep you project loading fast, always keep minimum number of open documents.
Question: How many people are required to purchase a laptop?
Question: And what is the flowchart of purchasing a laptop?
Answer: Acquire 100% resources –> Drink beer –> Have lunch –> Go to theatre –> Watch movie –> Then release 60% of resources and utilize 40% resources to buy laptop –> The process is exhausting so re-energize 40% resources with more beer.
Don’t believe me? Read the story below (it’s real):
Bob is a software professional who is working for a large MNC. Currently he is posted at client side. He has a team of six people who share good chemistry. Today one of his team mate Mr. M decided to buy a laptop. His office is very near to largest electronics market so it was decided that team will go to buy laptop in the lunch time.
Unfortunately, nobody in the team brought their car today. Usually people use company provided cabs for commute from home to office and back. So they decided to hire an auto. Bob and his mates asked many auto driver but all denied. Finally it was decided that they will take bus. After long wait bus stand, finally a bus arrived. Frustrated after waiting long time, they were onboard in fraction of seconds. Things seemed to be on the right path when they discovered that they had boarded wrong bus. After changing the bus at the next stop, they finally went to the market.
While passing through the theatre M proposed for watching the movie. Mr. V proposed for having lunch. Se it was decided that they will watch the movie after lunch and they they will buy laptop. The restaurant was unfortunately close to the beer and wine shop. It allowed carry and drink facility. Mr. D proposed for beer and Mr. G immediately approved. V and M gave silent approval. Bob doesn’t take alcohol so his vote was neutral. Since nobody opposed the idea, they decided to have beer first, and than lunch and then movie. Purchasing laptop was last in the list.
Things went well as planned. They had beer and then had lunch. After lunch every body enjoyed movie. D and G want to have more beer. But theatre management didn’t allow them to go outside while the show was running. By than, it was evening and almost dark. The office cab would leave in the one hour. So it was decided that first they will go to office and M and D will come back to buy laptop. D wanted to drink more beer. He proposed to drink one more beer and then go to office and then come back to buy laptop. Bob along with G and V opposed it. Going to office after having beer was not appropriate. So finally it was decided that M and D will purchase laptop, have more beer and than went to home. Bob, G and V will go back to the office.
What happened next is that they follow the plan. In the night Bob called M to confirm weather they had purchased the laptop or not. M had purchased it.
Who is Bob? It’s a suspense. I will revel it at the appropriate time.
Microsoft shipped Visual Studio 2008 and .NET 3.5 today. Here are some resources for VS 2008:
1. ScottGu’s weblog is the primary and authentic source of information।
२. Somasegar’s Weblog
3. Paul Andrew blogged about a downloadable poster of commonly used types and namespace in .NET 3.5 (in pdf format), which is worth checking out.
4. View ASP.NET 3.5-specific videos at Microsoft’s official asp.net website.
5. Brad Abrams wrote about Design Guidelines, Managed code and the .NET Framework 3.5 in his blog.
6. Here is a 31 minute video at Channel 9.
7. VS 2008 is not shipped with MSDN. You can Download MSDN Library for VS 2008 from here.
8. The details about VS 2008 express edition (free) are available here.
Microsoft is organizing a one-day workshop on software security in Mumbai, Pune, Kolkata and Chennai.. The summit is useful for:
- Software Developer
- Project Managers
09.00 – 09.30 hrs :
09.30 – 11.00 hrs
Microsoft Platform Security – An Overview
Get a detailed view on the different components of the security development lifecycle, latest updates on security challenges, trends and statistics.
11.00 – 11.30 hrs
11.30 – 13.00 hrs
Application Platform Security
As a developer who has written applications for any one of these platforms, you must have noticed similarities in .NET and J2EE. For anyone who has developed applications on both J2EE and .NET, you must have noticed the differences between them that make designing applications for both these platforms way different from each other. In this session we are going to talk about the similarities in the approaches of both .NET and J2EE and how you can cross leverage your skills across these platforms. We will also talk about underlying core differences and how you can make use of these feature differences to write more secure applications. As an added bonus we will show you how you can use a few common tools to detect security holes in your code.
13.00 – 14.00 hrs
14.00- 15.30 hrs
Data Platform Security
The Web provides a convenient, cheap, and instantaneous way of publishing data. Now it is extremely easy to disseminate information, it is equally important to ensure that the information is only accessible to those who have the rights to use it. Never before has information security had so many vulnerable points. As the computing industry moves from the mainframe era to the client/server era to the Internet era, a substantially increasing number of points of penetration have opened up. New security procedures and technology are pioneered daily, and this session explains the various security systems involved with solving the current problems via the Server Security, User-authentication security, session security and more. For each layer of security added, the system becomes more protected. Like a chain, however, the entire shield may be broken if there is a weak link. And this session will take a sneak preview of how database security and the various database environments are up for the challenge.
15.30- 16.00 hrs
16.00- 17.30 hrs
Web Platform Security
A security compromise of online web applications could result in huge losses of data and valuable customer information, causing irreversible losses. Popular web platforms such as ASP.NET and Linux/ Apache/ MySQL/ PHP should be designed to minimize security risks occurring due to a bug in the code or a vulnerability in the overall environment. Validating user input, handling user data securely, protecting vital configuration data, blocking common hacks such as injection and cross-site scripting, etc. are some of the basic features required in developing secure web applications. Learn how the LAMP platform and ASP.NET/IIS handle these various security scenarios and why ASP.NET/IIS can provide you with a much safer and secure environment for hosting web applications.
Date Time and Venue
21st Nov 2007. GRAND HYATT. Register Now!
Friday, 23rd Nov 2007. Taj Blue Diamond. Register Now!
Thursdays, 06th Dec 2007. Taj Bengal. Register Now!
Friday, 14th Dec 2007. The Park. Register Now!