Want the dark font color scheme in Visual Studio 2010/2008?

If you like the dark color scheme available in Visual Studio 2012 and would be happy to have the same in your Visual Studio 2010/2008, you can have it for at least the code editor font colors by downloading the themes from studiostyl.es. (Note that white-on-black (dark color scheme) is easy on your eyes than usual black-on-white) I was wondering if anyone could have made a theme based on Visual Studio 2012 and went to studiostyl.es and searched then got couple of dark themes based on Visual Studio 2012 code editor font colors. One seems to be made using Visual Studio 11(2012) beta, you can get it here. I think this one looks more accurate. ..and the other one made using Visual Studio 2012 you can get it here.

Prevent cutting or copying blank lines in Visual Studio

I hope you know that we are not required to select a line to cut or copy it in Visual Studio, you can just keep the caret in a line and press Ctrl + C or Ctrl + X and the text in the line will be copied to your clipboard and you can insert this line anywhere in your code by pressing Ctrl + V. It will also copy a blank line, but people use Ctrl + X command to delete blank lines and some may find this as an issue as they didn’t intend to copy the blank line and also it will clear the previously copied item in the clipboard. It is surprising as usual to find that Visual Studio team has thought out this and provided a setting which prevents the copying of blank lines, and Cut command will just delete the blank lines. I found this when I recently bumped into the setting in Visual Studio, in Text Editor > All Languages called “Apply Cut or Copy commands to blank lines when there is no selection“.

Visual Studio 2010 Extension for collapsing solution explorer items

I have recently realised how folks get significantly uncomfortable and could also loose little amount of productivity speed when navigating Solution Explorer which is in a state of mess due to randomly expanded and collapsed Solution Explorer items, it surely causes at least a tiny amount of lack of clarity. The basic TreeView control or Tree control is a common windows control found in many places in Windows OS, including Windows Explorer. The same is found in Visual Studio’s Solution Explorer, for those who are not aware; this control supports some keyboard shortcuts, I mean whether you are in Windows Explorer or Visual Studio Solution Explorer you can select a node’s parent and use these shortcuts. + (plus) –> Expand – (minus) –> Collapse * (asterick) –> If you would like to expand recursively a particular item’s child items But there is no shortcut to collapse recursively. Collapse Selection in Solution Explorer extension is available for Visual Studio 2010 that adds an icon to the Solution Explorer(shown below), clicking which recursively collapses the child items. You can press Ctrl + Alt + Num(-) – numeric keypad’s ‘-‘ to use it. This extension is better than the functionality in “PowerCommand for

Have you tried AutoHotkey tool

AutoHotkey is a great FREE and open-source tool you can use to create hotkeys and assign them to commands that you can execute on your system. You are asked to create a script file with commands and then open it in the AutoHotkey program to use it. Commands are executed based on the hotkeys assigned to them in the script. In the script, you can specify simple commands like the one shown below. #n::Run Notepad The above command launches Notepad. # stands for Windows key, ^ for Control key, ! for Alt and + for shift You can find more commands and general usage info about AutoHotkey in the tutorial page here.

Try jsFiddle.net, it’s cool

Whenever someone explains some issue they are facing by sending some snippets of code which contains HTML with Javascript or CSS. I use this cool tool called jsFiddle.net and paste the code they send me in the relevant boxes for HTML, Javascript & CSS in the site and work on the issue. I do this even if I have the full file set of code in which the issue is present in one part of the code set, this helps much in issue isolation. So checkout jsFiddle.net!

A new feature in ASP.NET 4: Shorthand syntax for Html Encoding

So far if we need to HTML encode content that we throw out to the response stream we will use Server.HtmlEncode() method as below.   <%= Server.HtmlEncode(“Content”) %>   Now in ASP.NET 4 we have a new code syntax, which comes handy whenever you want to emit content with HTML encoding, the new syntax is <%: … %> the “=” character is replaced in this new syntax by the “:” character, as shown below. <%: “Content” %>

A little less cared ASP.NET’s NestedMasterPage

I have seen developers using user controls which will show and hide sections of site content based on the state of the web site. This is fine for some extent, you know when it becomes bad ? It becomes bad when only user controls are used even for site layout related stuff. ASP.NET’s NestedMasterPage is a great thing, that, I should admit, I myself started using only recently earlier I was using other ways to display a set of pages in different layout in a website. NestedMasterPage is a master page which is based on another master page, you can have as many levels of nesting as you wish, as far as you don’t confuse yourself. You create a NestedMasterPage based on which other normal ASP.NET pages will be created. You can have a Main master page in which a website’s most common UI elements are present and create NestedMasterPages for different areas of a site like subsections of a site like web interface for post Member login, etc. Below is a simple depiction of what could be done with a NestedMasterPage in ASP.NET web forms. Now, below images will give you some idea on how the layout of a

Do you know Notepad’s .LOG feature?

Thought of posting a simple feature of notepad that might be useful for many who log things in a file for various purposes, mostly this can be used for simple things that needs to be logged. In Notepad, type “.LOG” (case sensitive) in first line of the file and save it, now close and reopen the file, current date and time will be inserted in the last line and you can type information and save.

Code Snippets in Visual Studio

This post gives introduces code snippets in Visual Studio, how you can use them and helps you find out the list of built-in code snippets for each language easily. Code snippets in Visual Studio are useful in reducing typing effort required to input code. Code Snippets help in several ways to simplify your work if you can remember to use them instead of typing the actual code. Code Snippets are present in Visual Studio from ver 2005.