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

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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.

Visual Studio Wallpapers to decorate your desktop!

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. I was doing a search for visual studio logo to use in a presentation and I stumbled upon a site called vs2010wallpapers.com, and found some great wallpapers built by the community and thought of sharing with you. You too can create some and submit…   (Click to go to the site) Find more on the website..

Prevent cutting or copying blank lines in Visual Studio

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

Have you tried AutoHotkey tool

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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

Do you know Notepad’s .LOG feature?

(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. 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.