Posted by Ajay Matharu in Tip of Week, Visual StudioMay 25th, 2009 | No Comments
If you want to add an existing file to a project and have the project point to the file where it resides, press the little arrow key on the right side of the add button on the add existing dialog. The arrow will present a small context menu that allows the option of adding the file as a link, which will cause the Visual Studio project to point to that file where it is instead of copying it to the project directory.
Posted by Ajay Matharu in .Net, Microsoft, Tip of Week, Visual StudioJan 19th, 2009 | 1 Comment
Normally when you use “ctrl + f” and search for results, you have to navigate one by one in every file where the searched string exists. There is an alternative to this rather than navigating one by one you can have all the results in your “find window”.
press ctrl + shft + f
you can search for the string and the result will be displayed in the Find window
you can click on the search result line to navigate to that part.
This is extremely helpful when you want all your results to be listed in a find window rather then to navigate one by one in every file where the searched...
Posted by Ajay Matharu in .Net, Microsoft, Technology, Tip of Week, Visual StudioJan 12th, 2009 | No Comments
Many a times you find the need to navigate to the function definition from the function call to see how the function has been defined. To do this you can either press F12 or right click on function call and select “Go to definition” option.
Similarly from the function definition to go back to the function call press ctrl + – keys.
Posted by Ajay Matharu in .Net, Microsoft, Tip of Week, Visual StudioJan 5th, 2009 | No Comments
Regular expressions are an extremely versatile text-matching language that gives you incredible power when searching your documents and when used with replace operations, can greatly assist with repetitive changes to blocks of code.
The basic regular expression search is easily done. You simply open the Find dialog through the Edit – Find and Replace – Find menu or with Ctrl-F (Edit.Find). Enable regular expression searching by ensuring the Use checkbox is selected and the drop-down list has Regular Expressions selected.
Enter your regular expression into the Find What text...
Posted by Ajay Matharu in .Net, Tip of Week, Visual StudioDec 29th, 2008 | No Comments
Hi guys, do you know you can use already ready code inside your visual studio? Yes certainly you can insert code snippets into your code. You can invoke the “Insert Snippet” by using shortcut “ctrl k + ctrl x”.
You can download some of the code snippets from http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx all you need to do is install this file at “My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets” location. You can also find some more snippets at http://www.codeplex.com/snippetlibcsharp/Release/ProjectReleases.aspx?ReleaseId=14841...