Use “Obsolete” attributes to indicate Obsolete Methods September 3, 2010
Posted by Abhijit Jana in ASP.NET, C#, General, Tips and Tricks, Visual Studio.Tags: Beginners, codeproject, How To, Obsolete, Tips and Tricks, Visual Studio
10 comments
In this post I have explained how you can use Obsolete attributes to mark some methods which are not no longer in used or may be remove in future release of the class. During the development cycle we may need to change the name or declaration of certain methods which may be using by some other developers. In this case if you changed the name or declaration of that method, application may crash in different point of times as it’s being used by other developer in the application. In this case you can use System.ObsoleteAttributes class to generate compiler warning and indicate the method as Obsolete.
Few Tips on Customizing Debugging Window View in Visual Studio August 29, 2010
Posted by Abhijit Jana in General, Tips and Tricks, Visual Studio.Tags: .NET, codeproject, DebuggerBrowsable, DebuggerDisplay, Debugging, Development Tools, How To, Microsoft Visual Studio, Programming, Tips and Tricks, Visual Studio
11 comments
In this post I am going to discuss about few tips on customizing debugging debugging windows. This may be very helpful during debugging of application. While debugging, you may want to simplify debug window or you may want to clean up all the unnecessary fields that are not important during debugging from debugging windows. Here is few tips for customization of debug window.
Use DebuggerBrowsable attribute to customize the debugging windows
Use DebuggerDisplay attribute to customize the debugging display.
To use above attributes you have to use System.Diagnostics namesapce
Set source view as default view for Web Pages in Visual Studio August 13, 2010
Posted by Abhijit Jana in ASP.NET, General.Tags: ASP.Net, Beginners, How To, Tips and Tricks, Visual Studio
8 comments
By default in Visual Studio for any web pages design view is the default view. Which may causes some time to load if your page is having many controls . So If you want to change the default view from Design View to Source View, just perform the following steps.
Go to “Tools” > “Options” and Navigate to “HTML Designer” Section.
One of my favorite Visual Studio Shortcut- Very useful ! August 9, 2010
Posted by Abhijit Jana in General, Tips and Tricks, Visual Studio, Visual Studio 2010.Tags: Automatic Interface Implementation, codeproject, Shortcut Key, Tips and Tricks, Visual Studio 2010, VS Useful Shortcut Key
15 comments
“Ctrl + .” Or “ALT + SHIFT+F10” is one of my favorite shortcut in Visual Studio. You can use the same shortcut for various situations as described in below.
1. Adding Namespaces Automatically / Resolve Namespaces.
2. Generate Method Stubs.
3. Implement Interface/ Abstract Class
4. Generate Automatic Class Files
5. Rename Member variables or Classes
Let’s start with one by one .
1. Adding Namespaces Automatically / Resolve Namespaces.
If you are adding a new class in your code you may need to add the correspondence namespace. To do it, you may either manually type the Using Namespace or you just right click on the class name and select Resolve > Namespace. But using “Ctrl+.” you can automatically add the namespace in your code.
How to hide Intellisense window in Visual Studio while coding or debugging to view the code? July 31, 2010
Posted by Abhijit Jana in General, Visual Studio.Tags: Beginners, How To, Intellisense, Tips and Tricks, Visual Studio
4 comments
Here is one quick tips to hide Visual Studio Intellisense window to view the covered source code by the particular Intellisense popup. When we are working in Visual Studio and the IntelliSense window comes up, but we may want to view the code that is covered by the window. Here you go, Press the Ctrl key. Intellisense window becomes transparent and you can easily view your source code. Hold the Ctrl as long as you want them to be transparent. You can do it while debugging your application or writing code.
Below is the few snaps for the the same.
1. View Code By Hiding Intellisense Window During coding






