When I go to another file, using F12 on a type name in the code, it will open the file in a read-tab to the right. If I navigate further the new file will replace the previous one.
In Visual Studio 2010 it would open a new tab for each file I go to. I've tried to get used to the new behaviour, but I can't stand it.
How do I turn this feature off?
Visual Studio 2012 has a new Tabs and Windows settings page under Tools > Options > Environment that controls this kind of behavior:
You probably want to disable Allow new files to be opened in the preview tab in the Preview Tab section.
Related
I am working on a site with a publishing profile that pushes the site to a remote host. After publishing I get a new browser window that navigates to the newly published site. This is ok in most circumstances but I am in a situation where I can't allow that last step to occur, I simply want to tell visual studio not to show me the website after publishing. I've checked all the publishing settings that I can find but haven't found any option to control this. Anyone have any ideas?
Does this information from Visual Studio 2013 still hold true for 2015?
http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis
I can't check it myself, but essentially it says that in the 'connection' tab of the deploy dialog, the Destination URL setting isn't required. When Visual Studio finishes deploying the application, it automatically opens your default browser to this URL. If you don't want the browser to open automatically after deployment, leave this box blank.
Do you want to try that?
Update for Visual Studio 2019:
In the "Publish" page, look for "Configuration". On the right side, click the Pencil Icon.
In the next dialog, open the "Connection" tab, and empty the field "Destination URL".
Specifically, I would like to add the option to run the (TFPT command: searchcs) - which opens the Commit History search GUI.
It would be beneficial to be able to add it in the Source Control Explorer or in the History window or even in a right-click contextMenu.
You will need to implement a Visual Studio Extension to wrap this command line, see this thread:
VS 2012 TFS Source Control Explorer - Add Item to Right Click Menu
I'd like to configure Visual Studio 2012 / TFS to launch an external editor when I double click the source file in the Source Control Explorer.
I've seen where I can add an external editor as an External Tool, but don't see how to link that external tool to a particular file extension and to launch when double clicked.
Thanks!
Right click on the file in Solution Explorer / Open with / Choose Program / Set as Default
From comments:
I'm in the Source Control Explorer. I assume I can't do it from there? (I don't see menu options for Open with...).
Or from Source Control Explorer, I have an option "View With" in Visual Studio 2010 that works in the same way. I don't have it in VS2012, and a comment on this StackOverflow question suggests it may be provided by an add-in (perhaps TFS power tools, since I don't have any other add-ins installed in VS2010).
It may be that if you click on "Set as Default" from Solution Explorer to set an external tool as editor for a file extension, then this becomes the default for viewing from Source Control Explorer too. But I haven't tried this.
Visual Studio 2012 appears to have a new feature that distinguishes between files that have been explicitly opened for editing and files that have been navigated to (these "preview" files default to the right side of the file tabs on the top of the environment and have a default tab color of purple).
While it is possible to keep a preview file open by clicking on the "Keep Open" button in the tab, I find myself looking for files that I expect to be open, but have been closed by Visual Studio without my direct input.
Is there a setting available that automatically converts preview files to open files (i.e. just skips the preview mode entirely)?
You can turn off Preview Tab, go to Tools / Options / Environment / Tabs And Windows and uncheck "Allow new files to be opened in preview tab", like in screenshot below :
In VS2012 when you select a file in solution explorer it automatically opens file in a special "preview" tab.
Maybe my computer is not fast enough, but this preview is too slow for my taste.
How do I disable this feature?
In Tools > Options > Environment > Tabs and Windows, you can disable it by unckecking "Solution explorer" under Preview tab.
I find it using the "Quick launch" new feature. Simply type "preview", and a link to the setting will be suggested. Great new feature of VS
You can also toggle file preview within the Solution Explorer tool-window itself:
This may have been added in the July update because I hadn't noticed it before then.
One of the buttons at the top of the solution explorer toggles whether this is enabled.
On Visual Studio 2013 I have done this by this Icon :
An even better solution IMO is to completely disable the File Preview feature (not just for Solution Explorer):
Open Tools > Options
Navigate to Environment > Tabs and Windows
Uncheck "Allow new files to be opened in the preview tab"
This also prevents things like Go To Definition (F12) from using preview tabs.