Is there way to clean up pending changes with "Add" value in column "Change" . They seem to be related to open solution according to folder path, but not present either in the solution or file system. Pressing "Filter by solution" actually doesn't show them and shows "Delete" for other files in unrelated projects which is also confusing. There were manipulations to move solutions to other root folders which could contribute to that. All those solutions are not really used, so any possible undo will do :), but not clear how to purge all those dirty entries from pending changes window.
Can you just click the Change column header to sort by Change type, highlight all the Adds right-click Undo.
Related
I'm new to Visual Studio, but have used several other IDE's over the years. I'm stunned by the poor out-of-the-box management of files, filters and "presentation" of coding, and now trying to find if there's a way to customize it the way I've found to be optimal for me.
First off, when programming C++, I'd like for the IDE to use a vertically split automatic view. Dragging and dropping a view to the right side giving me a "static" split is no problem, but that file will stay there untouched until I open another file while in this active view.
What I want is to make it so that when I click a .cpp-file in the explorer, it will show up in the left view - and its corresponding header-file will show in the right view. Likewise, when clicking a header-file, I'd want it to be presented in the right view and the corresponding .cpp-file to show in the left view. If either doesn't exist, just show a blank screen on its side.
When ctrl-clicking a class name, I'd want both the cpp and header-file to be presented, cpp on left and header on right.
Is this not possible?
The second thing that grinds my gears is the solution explorer. I simply don't understand the value of the filter system. I surely do not want every single .cpp file lined up alphabetically under each other, and every single header-file alphabetically another place. I want the explorer to replicate the folder structure as-is. And let me create a file in "src/my_folder/" by right-clicking "my_folder" and add->new item.
I've found that I can click "Switch views" and select "Folder view", but doing this seems to also invalidate the "Solution" and any configurations etc. The solution is literally gone, and the Build/Run-command switches to "Current document" and is completely detached from the project itself.
The closest option I've found is to be in "Solution view" and select "Show all files". The problem is that this shows literally all files and folders, including "output-folders", "hidden" and completely irrelevant files and folders that I don't want here. And I'm naturally not able to "hide" these files, as this is an option to "show all files".
Xcode on Mac has both of these features (and more snacks) pretty flawlessly implemented, and is my all-time favorite IDE per now.
Is there any way to replicate these features in Visual Studio?
Back in Visual Studio 2010, selecting "Source control" -> "Check in" would open a separate window that listed all checked-out files, with those under the selected node (or the currently open file in the case of going through the File menu) initially selected for checking in. This list was sortable by clicking on the column headers, making it easy to sort the list by any of the fields listed. (Particularly, I found sorting by edit type to be very useful.)
A very similar dialog (actually, I think it is essentially the same one, save for the graphical icons being different to match the revamped UI style) can be accessed in VS2013 through the source control merge wizard by selecting "Selected changesets", right-clicking on a changeset in the resultant list, and choosing "Changeset details". This dialog even has the advanced feature that it is fully resizable according to the preferences of the user and the needs at the time. But that, of course, is only available after the changes have been checked in.
The pending changes/check-in view in VS2013 is just a tree view in the "Pending Changes" window, which can be set to table view but doesn't separate pending change type from file name, making the table view almost, but not entirely, as useless as the corresponding tree view. The view in 2013 also has the serious drawback that while the window (whether docked or free-floating) can be enlarged, I can find no way to enlarge the list of changes vertically, so I am stuck looking at 14 files at a time on the 1920x1200 monitor. While check-ins should generally be small, sometimes check-ins affecting a large number of files are just unavoidable. (Like right now I am looking at a merge affecting a total of 840 files because of a refactoring effort.)
Which leads me to my question. Is there any way to get a dialog similar to that in VS2010 for checking in files when running VS2013?
I'm open to suggestions involving paid-for add-ons, but a free solution (whether it can be done through an add-on, or some configuration setting I have simply failed to find) might be an easier sell.
My VS2010 environment has the start page come up if I'm not opening a solution. From there, I can open one of the several items on the recent projects list or I can open a project from the link/button in the upper left. When I do that, I get an Open Project dialog that's pointed at my C:\workingvss (which is a convention that everyone on my team follows for where our code lives locally). But I virtually always want to browse to the project in a VSS database and I have to scroll up in the left-hand pane of the dialog to bring 'Microsoft Visual SourceSafe' into visibility. It seems dumb that I can't make it just start at the top of the pane, but if there's a way, I haven't been able to figure out how.
So I'm turning to you. Is there something I can do to avoid this click and drag every time I want to open a project?
I realize it's defaulting to the Projects location parameter set through Tools > Options > Projects and Solutions > General. But I think I need to leave that as is because I do want my stuff saved to that location during checkout.
I also think that if I removed ten (in my case) folders from the root of my C:, the left pane would show my VSS option, but I don't think that's even possible in this machine's case and not a reasonable solution in any case.
My question is related to, but not a duplicate of, How to change the default open file dialog path.
Thanks for your time!
This isn't a great answer, but it's my current no-tech work-around. If I make the Open Project dialog large enough to accommodate all of the lines it wants to display, then my VSS line is visible and I don't have to navigate to it. Luckily, Visual Studio remembers the size from use to use.
I'm using Visual Studio 2010 and sometimes in some of my projects, for reasons that are unknown to me, the "folders" displayed in the Solution Explorer change and I can never seem to change them back unless I create a new project and copy the files over.
I want the solution explorer to display "Header Files", "Source Files" and "Resource Files" instead of just "Debug".
Here's an image of what I want it to display like when I create a new project:
http://www.jumbala.net/VS2010_SE_HeaderSource.png
Here's what it displays sometimes:
http://www.jumbala.net/VS2010_SE_Debug.png
I looked in the menus and I couldn't find anything to change it back.
Edit: Someone posted that I had "Show all files" checked in the second image, but he/she deleted his/her post. So yeah, that's why it wasn't working. I feel like an idiot for not noticing, but I thought that button and the one on the left (which is 'Properties') were mutually exclusive and so I had tried pressing 'properties' but not 'show all files'.
Thanks whoever posted the answer and deleted it.
To fix this, just uncheck the "show all files" button that appears ticked in the second image.
I recently switched from a Java based project to a C#/.net project. I previously used IntelliJ which had the concept of change lists where you could group your pending changes together and check each group in individually.
I have two problems with the pending changes window in visual studio.
1) Every time I check anything in, visual studio checks the checkbox beside Every pending change in the list forcing me to uncheck each and every one of them so I don't accidentally check something in. This is extremely frustrating because there are several files that I need to keep changed to correctly run my code locally. Is there any way to change this default behavior to not check any pending changes on check-in?
2) Is there any way to group changes into lists as opposed one big bucket of changes? Again this becomes frustrating when I need to check something in, but I have to search through the files and check the pertinent changes. I understand that shelve sets exist using TFS, but that doesn't cut it for me, especially since I have several changed files that I need to keep altered in order to correctly deploy locally, and I rarely ever want to check in.
Thanks in advance!
I have to manage lots of changes every day in Visual Studio, and I've got a few tips for you, but no silver bullet:
Use Ctrl+A to select all items and then press a checkbox to toggle the checkboxes for all items. This can be useful when performing changes to only a few items -- just uncheck everything, then make sure you have only the items checked that you'd like to update.
Use Ctrl+Click (then right-click) to 'Undo' selected changes. By default, the undo action will only apply to the selected items.
You might want to experiment with using multiple Workspaces -- and then filtering changes by workspace or by solution.
No, I don't know of a way to fix your problems. It sounds like the best answer would be to refactor your configuration settings or code so that you can check in all of your changes.
If your changes are in different projects you can partition what you check in using the Source Control Explorer by right clicking on the project folder and checking in that way. It will auto check only the files in the folder you right click on. Just keep in mind the Source Control Explorer gives you some other options. Otherwise, I do not know of a way to manually control your change sets file-by-file thought if this exists I would like to know about it too.
You can also use Ctrl+A to select all items and then press Spacebar to toggle the checkedboxes as checked/unchecked.