Add an existing file to a project without copying it

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.

tags: ,

Find Window in Visual Studio – Visual Studio Tip of Week #18

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

find

you can search for the string and the result will be displayed in the Find window

find-result2

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 string exists.

tags: , , , , , , ,

Navigate To and From function() – Visual Stuido Tip of Week #17

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.

function-definition

Similarly from the function definition to go back to the function call press ctrl + – keys.

backtofunctioncall

tags: , , , , , , , , ,
Page 1 of 612345Last »