I wrote a program and compiled it successfully, checked the exe file also. When i restarted visual studio; and wanted to open output file from resource view in visual studio; it gave an error "opened in another editor" . there is no such editor. i restarted my laptop too but it doesnt work – "OPENED IN ANOTHER EDITOR" error is under the resource view in Visual Studio. Instead of the .rc files under resource view, that error is appearing under resource view tab. I have closed all the windows also.
You probably have the .rc or Resource.h file opened in text mode in another tab. Close all source windows and try again.
In my case delete .suo file was the solution
Related
I'm trying to edit a resx file in visual studio, but every time I try to open it I get.
"The designer loader did not provide a root component but has not indicated why."
Edit: after closing and reopening my visual studio it works again. But I have no idea what is causing this.
Is there any way of saving a "session" / "working set" in visual studio. By session ( ex: session in Notepad++ ) I mean group a bunch of files that I'm viewing so I can save and re-open that same set of files. Similar concept exists in eclipse "working set" which applies to projects ofcourse.
The way I am able to create such a session is:
Enable launching debugger automatically for the .exe to be debugged using "Image File Execution Options" in registry (see http://msdn.microsoft.com/en-us/library/a329t4ed%28v=vs.100%29.aspx). The .exe may be any executable, e.g. notepad.exe, in case you are not interested in debugging.
Run the .exe.
In the "Visual Studio Just-In-Time Debugger" dialog that is displayed, select "New instance of Microsoft Visual Studio 20xx" and click Yes.
In the new instance, open the files as required and do 'Save All' to save the .sln file at desired location. Your session, including open files and breakpoints, will be saved along with the .sln in .suo file.
Somehow my Properties window has become detached. When I view properties of any item in the Solution Explorer, it pops up but then I get a message that Visual Studio has stopped unexpectedly.
I've gone through my solution and deleted all .user and .suo files, but it still happens. I've also tried the reset layout option and no luck.
There must be a docking information file somewhere that I could delete or edit.
How can this be solved?
They are usually stored in a .vssettings file. So you could find that and delete/rename it.
Try running this in the command line:
devenv.exe /resetuserdata
I've opened a XAML file in VS2010 that crashes Visual Studio.
The problem is that when I close VS and reload it again the XAML file automatically opens and crashes my VS again.
I don't know how to solve this loop.
Is there a way to open the solution with all files closed?
You could delete your solution's '*.suo' file. This file contain the information about the open editors. If you delete it visual Studio will not open any editor when loading the solution.
However you might lose some other customizations as well but in general there is nothing really important in this file and Visual studio will automatically create a new .suo file
I will try even a more violent method.
Move it into trash, and then bring up Visual Studio 2010.
Open another file in Visual Studio so your XAML file opening record will be washed out by the new one.
Close Visual Studio, and then restore your XAML file.
I'm pretty sure that Microsoft's file system won't track where your XAML file go and then tell Visual Studio to open it in the new location, but putting it in trash temporally is a great option.
Try temporarily move the xaml file to another location. (or rename) so VS cant find it, then you should be able to open.
(Windows XP, Visual Studio 2010 Express (Web Developer))
I would like to add various file types to open in Visual Studio that it does not open by default, namely .js, .html, .shtml, .css, etc.
I tried looking for UI inside Visual Studio to add new file types, but I couldn't find anything, so I tried the naive approach of right clicking on the file -> Open With -> Choose Program -> Browse -> c:\program files\Microsoft Visual Studio 10.0\Common7\IDE\VWDExpress.exe. This almost works, except it starts a new instance of the IDE rather than opening a new tab the way .cs files do.
I've tried to go registry diving, exported the association for .cs files, and changing it to point to .shtml (for example), but this still spawns new windows.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.shtml]
"Content Type"="text/plain"
"PerceivedType"="text"
#="VWDExpress.cs.10.0"
[HKEY_CLASSES_ROOT\.shtml\OpenWithProgids]
"VSTA.cs.9.0"=""
"VWDExpress.cs.9.0"=""
"VWDExpress.cs.10.0"=""
[HKEY_CLASSES_ROOT\.shtml\OpenWithProgids\Shared]
#="Shared key to keep this from being removed with install/uninstall of side-by-side components."
[HKEY_CLASSES_ROOT\.shtml\PersistentHandler]
#="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
I strongly suspect that doing this is the wrong way to go about this, but I can't find a better solution. Is there one?
Ive had the same issue so downloaded VWD with SP1 along with VS.PHP 2.10. Right clicked on a .php file and chose 'open with vs.php 2.10', checked the checkbox on bottom which saves settings. Double clicking on a php file has been working since then. In order to be able to use it from a file manager like winscp i had to put 'explorer' as the editor executable. It works for my js html css and php files and opens them in the same VWD instance. Only pain may be that vs.php is to be paid for eventually and that you'd need to associate every extension you wish to work with.
After you use naive approach to associate file with VWDExpress.exe, find a command in registry and add /EDIT parameter. I don't know if this works for Express versions, but for full Visual Studio this opens file in already open Visual Studio instance.
Download Default Programs Editor and open.
In my case I was associating .php files to Visual Studio 11, and to do this I simply copied the settings for .cs files. I've noted all steps below.
FIle Type Settings > Context Menu
Search .php (or whatever association) - note you can multi-select
Click next
Click Add... under the list
Enter the following data:
Command name: Open
Program path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /dde
Now unfold the Advanced Settings, tick Use DDE Message, and click Edit. Add the following:
Message: Open("%1")
Application: VisualStudio.11.0
Topic: system
If you want to apply this to lots of files I suggest using the built in saving to registry option and creating a batch script with it.