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.
Related
Design tab is not visible in Android Studio. How to enable it ?
View - Window tools - viewer is not visible.
Thanks
I recently ran into this problem. Try File > Sync Project with Gradle Files. This can also help with configuration problems
The view that you are looking for is called the "preview" window in android studio.
You have to open a layout view in your project. Navigate to src/main/res/layout/ in your project and select the xml layout file you want to work with.
If the preview window doesn't automatically open up, you can open the view by selecting from the tool bar View>Tool Windows>Preview
There will be a "Design" and "Text" tab at the bottom of the xml layout.
I have two azurewebsites, in the azure management portal looking at the 'dashboard' both sites had a 'edit in visual online PREVIEW' option. This option has now disappeared on one of the sites - any possible reasons?. I have tried logout, close browser, clear cache etc..
Have you already opened it in Visual Studio? If so, just open Visual Studio and the solution will be listed under the Recent section of the start page. If it's not there, click the Recent Projects and Solutions option in the FILE menu. As for why it disappeared, hard to say. I just started using Visual Studio Online (aka TFS) and have found that while very convenient and easy... things are a little weird sometimes. Good luck!
Doh! - The switch to enable it on the config pane was off. - Thanks
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.
I have an ASP.NET MVC4 application solution (.sln). When I close Visual Studio and then reopen it and my solution, my tabs and my navigation structure in the solution explorer do not restore to the way they were.
The solution is big and it takes me a long time to reopen many tabs and open lots of folders in the solution explorer.
Is there an option in VS that would allow me to restore the solution to where it was when I left it?
I've already done "Reset all settings" in the Import and Export Settings Wizard, but it didn't help.
I've also tried booting VS in /SafeMode which disables any extensions. No difference.
Searching around I can't see anyone have similar issues.
As far as I know the .suo-File saves which files are opened. Try to delete this file (VS will generate it new) and make sure that windows-file-permissions are set correct (read, write access).
I had the same problem with Visual Studio 2013, and I solved it by doing this:
Export my current settings, making sure to UNMARK General Settings > Window Layouts.
Re-import the settings I just exported, but making sure I left General Settings > Window Layouts MARKED now (so it would overwrite the current Window Layouts with the "clean slate" of the imported settings.
Perhaps you can try the Workspace Reloader plugin that Scott Hanselman blogged about?
http://www.hanselman.com/blog/IntroducingWorkspaceReloaderAVisualStudioAddInToSaveYourOpenFilesAcrossProjectReloads.aspx
You can install it from here - http://visualstudiogallery.msdn.microsoft.com/6705affd-ca37-4445-9693-f3d680c92f38
Got this issue also for Microsoft Visual Studio 2022 Community Edition.
How to fix :
First, be sure, that tools->Project and solutions->General:'Reopen documents on solution load' and 'Restore Solution Explorer project hierarchy state on solution load' enabled
Second, just close VS and delete .vs folder, then re-start VS.
Works fine for me
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.