I have some similar files that can confuse so I want to tell them apart right in the file panel - without opening. As I remember there was such a feature but I can't find it. Does anybody know?
Related
I don't understand how it works. I'm new to Team Foundation Server and currently I have a small team. The co-worker can open my project file and run just fine (by double clicking the solution file right in the source control explorer window).
I can open my project file the same way but cannot open his project file. Clicking the solution file does load the solution but the files in there cannot be opened. It says something like this:
Cannot find the file "d:\....". It may have been moved or deleted.
The path "d:...." is actually the path on his machine. While in my machine it's mapped to a different path. But I don't understand why it cannot recognize it.
At first I thought the mapped path structure should be the same across all members' machines but if so my co-worker could have not opened my project file.
The status of the solution is Yes for Latest, meaning the files are loaded and copied to my local folder normally. Not sure if it matters but I'm using Visual Studio 2015 and my co-worker uses Visual Studio 2013.
I've tried searching around but could not find anything with the error message. It's so interesting that my co-worker does not have to do something special or self-aware so that he could tell me something to solve this. I hope you have some experience on this and give me some helpful suggestion. Thank you!
Edit:
To clarify it more, if I browse the file directly inside the source control explorer window, the file can be opened (but if it such as is some designer-supported file like .xaml - the designer then is not shown up). What I'm having trouble with is opening the file loaded in the solution (inside the Solution Explorer window). As I said clicking the solution file in Source Control Explorer window does load the solution, but because there is something wrong with the files path, I cannot open them as well as build and run the solution.
Right-clicking on the file in the loaded solution, select Properties, I can see that the Full Path is actually the path on his machine, so weird.
It sounds like your workspace is all messed up. Are you trying to share a workspace?
If so you should not. Each developer should have their own workspace local to their computer that is unique to them.
Try creating a new workspace and using that...
I recently changed the Default application for .jar files to be windows explorer, thinking that it would unzip them. I have since gotten a jar decompiler and would like to make windows explorer not the default application to open jar files ( as it basically crashes my computer). Nothing works, i have tried changing the default application by clicking open with, but the check box is greyed out. I have tried going Start menu -> Default Programs -> Associate a file type, but .jar doesn't even appear in the list. I have been googling for a couple hours now and can not find any response that isn't basically those two steps.
Does anyone have any idea how to fix this mess i made ?
Right click on a .jar, go to "Open With" > "Choose default program..." should do the trick. But you already did that, and "Choose default program..." was grayed out.
Edit:
Try FileTypesMan from Nirsoft
http://www.nirsoft.net/utils/file_types_manager.html
Go to .jar and select it, then you can see actions at the bottom and remove or edit them.
I Was able to fix it by messing around in the registry.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.jar\UserChoice
needed to be deleted. that let me choose a new default program for.jar files. Thank you for the responses.
Cheers.
I have encountered some weird behaviour in VS2010. When I perform a Find in Files for some text, and select Entire Solution in the Look In field, I get back file that are not part of my solution in the Results window. I have checked to see if these files have been accidentally added to my solution and cannot see them in the Solution Explorer, so can anybody tell me why this is happening, and how I can prevent these files showing up in my search, as I could accidentally enter one to make changes without realising they are the wrong solution.
Thanks,
Michael
Performed a Clean Solution and that seems to have stopped the files appearing. Would love to know how it happened though.
It's a great environment, but when I right click on, say a model .rb file, it is not readily apparent how I might rename a file.
Now RubyMine JetBrains is a brilliant program which I love, so I'm not going to stop using it, I just need to get around this simple problem.
Use the Alt+Shift+R shortcut to rename the file when it's highlighted in the project view panel.
Generally, actions like rename is part of the Refactoring (because you also need to rename the usages of it) so you will also find it in the Refactor menu on top.
In RubyMine 2018.3 on Windows use:
Shift+F6
or
Right click on the file name and choose Refactor > Rename
Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may not even need open. I have searched through the settings and cannot find anything to stop this behavior.
Simply delete the .suo file.
It contains the list of open files.
A bit of research turns up the fact that you can do it with a macro:
Create a new macro (or use an existing one). You should see a module called EnvironmentEvents in Macro Explorer. (For details, see here.)
Open the EnvironmentEvents module.
Put in this code:
Public Sub CloseDocsOnExit() Handles SolutionEvents.BeforeClosing
DTE.ExecuteCommand("Window.CloseAllDocuments")
End Sub
Save and Build the macro.
Open a whole bunch of documents in your solution, then close Visual Studio.
Yay! No more open documents!
(Note: Despite that it says SolutionEvents, it also works if you're working on a project that doesn't have a solution.)
I never realized how much that annoyed me as well! I haven't been able to find a setting, but in Options > Environment > Keyboard you can bind a shortcut to Window.CloseAllDocuments. ALT+X was unbound for me so I just used that. I'm interested if there's some hidden setting to automatically do this on solution exit though (or load).
Edit: Totally read the question wrong at first - ignore my first (now gone) answer. :)
I changed the keyboard mapping for CTRL-SHIFT-C from bringing up the Class View to closing all document windows - something I use several orders of magnitude more often - and then I just clear my workspace before closing a solution.
Try the following:
Close the program after closing all files.
Make a copy of [whatever].suo
Open the solution again, open some files, and exit.
Copy (don't move) the old .suo file over the one that was just generated.
Make the .suo file read only.
If you have a repository you might want to check that file in.
I suggest this because I was having the reverse problem, where it wasn't opening my old files automatically, and the cause was a .suo file that had been checked into the repository and was (for some reason) not being overwritten by Studio. The file wasn't even write protected.
I was hoping for something a little more automatic. VS will create a new .suo file every time the project is saved. So I would have to delete that file every time I open the project. I also don't want to have to remember to close all the files before closing VS.
Other IDEs that I have used have similar functionality, but also make it rather simple to turn on/off.
Thanks for your help.
Or you can close all open document from the Window menu before closing VS.
In Visual Studio 6.0 (VC++), the procedure is slightly different.
Delete the .ncb file (located normally in the same place as your .dsp or .dsw files).
The only way works for me is : change the project location and again reopen the solutions form there. :)