I was making a form on visual studio and didn't realise that my resolution was at 300% as I was working off a TV, all my items appeared scrunched together so I reset them in the correct positions however now some of them are off the edges of the form and I cant stretch it past a certain point in order to move them back. Is there a way I could get them without having to remake it?
What version of Visual Studio are you using? In the latest versions you can use the Document Outline pane/window (View->Other Windows->Document Outline, Ctrl-Alt-T may also display it).
In that window, with the form displayed, it will list all the controls in the form. Find the ones you need, right-click on them and select Properties.
Now the Properties window should be showing the properties for that control. You should now be able to edit the Location there to adjust where the control is posistioned.
Related
Document tabs in Visual Studio are sized to the name of the file as it appears on the tab. This means that the size of each tab that is open is contingent on the size of the text of the file name.
Is there a setting buried somewhere that will allow me to keep all tabs the exact same width?
Why does this matter?
For those that must know a reason for this request, I often work in sizable projects which someone else originally created. While researching functionality of code, I'll often open up over 10 documents, tracing paths or researching behavior. When I'm finished with my research, I'll often have to close the previous 3-7 tabs to get back to my original document and unclutter my work area.
I know this seems like a minor nuisance but since every file name is different, you can't keep your mouse in one location and click the the left-button 3-7 times in rapid succession to close all pertinent documents. You have to float the mouse back and forth, for every tab, because of the variance in tab size.
I'd prefer to just set it so that all tabs are the same size, regardless of the length of the file name. Can this be done with reasonable effort?
I am using Visual Studio 2015, so I would like an answer for that version of VS. However, once I upgrade to VS 2017, I'd like to make the same change to that environment.
If the answer for either version is different, I would prefer an answer for both instances of VS.
You can try Productivity Power Tools.
The feature "Vertical tabs" is what you need.
Document tabs are shown vertically, allowing you to fit more tabs than are normally visible when shown horizontally.
For VS 2015 https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProductivityPowerTools2015
For VS 2017 https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProductivityPowerPack2017
Updated:
Productivity Power Tools also support customizing min/max tab width. You can find it from Tools>Options...>Productivity Power Tools>Custom Document Well>Advanced
In VS2022 this is built in under Tools-> Environment -> Tabs and Windows
I remember once while using Microsoft Visual Studio, opening a source file (by accident I think) and having it render in either subdued colors or with a different background and showing a watermark indicating that this file was not a normal editable source file. I was under severe time pressure then and unfortunately can't recall the file or the wording of the watermark (or I would be able to investigate unaided).
Does this ring a bell with anybody? Is there a way to cause MVS to display auto-generated files in a different manner so that the developer does not waste time editing something that should not be edited? I open plenty of auto-generated files all the time (usually as a result of some global search) and it would be helpful to have all such files render in the editor this way.
The MVS version in question is Microsoft Visual Studio Professional 2015. I have Resharper and OzCode as well.
I was having this same problem. For the files I work with (web stuff, js, css, etc.) the watermark is applied by Web Compiler: "Shows a watermark when opening a generated file" (see features list in https://github.com/madskristensen/WebCompiler).
It turns out the "Generated" mark is toggled by clicking the bottom right corner of the editor window. In fact, it is always there, however if you accidentally click it, that will cause it to be hidden UNLESS you mouse over the bottom right corner of the editor window of the generated file.
So, to re-enable the watermark:
Open a file you know for sure is generated, like one of the output files in your compilerconfig.json file.
In the editor window, mouse over the bottom right corner of the window. You should see the "Generated" text re-appear, with a tooltip that says "Click to toggle visibility".
Click the text. From now on the "Generated" watermark will show up in your generated files. Just be sure not to accidentally click and hide it again.
-Michael
In the bottom of my Visual Studio there is a little icon (see image)
It is a moving magnify glass (I think it's a magnify glass, I'm sure it's moving)
It's moving all the time (it's moving, in a circle shape, and the background 'block' shape is growing larger and smaller), but there is no hover text, nor can I click it...
I'm afraid of moving icons when I don't know what they do.....
Anyone know what it means/does?
EDIT:
when I click on F5, it's shown besides the VS build icon:
That's the predefined SBAI_Find icon in Visual Studio's Status Bar Animation Region. Any extension could be triggering it (or even Visual Studio itself). There's more information here: http://msdn.microsoft.com/es-es/library/microsoft.visualstudio.shell.interop.ivsstatusbar.animation(v=vs.100).aspx
There's no way to tell what is triggering it by your question only. To find the culprit, I'd try disabling all extensions and enabling them one-by-one.
Notice it shows when using the standard Find in Visual Studio (if you want a lengthy operation to check it, use Find In Files)
In Simple Words , It Is a Search Engine Build By VB.net To Find Content According To The User's Requirement Needed And The Section Selected
Note: Different Section Will Lead To Different Search Result
It simply means, it is trying to find and link all the files. You should not be too much bothered about it and it is not from any of the third party extension.
I have a certain project that's been problematic in visual studio. The main form has a TabControl with four tab pages, and during initial development, the entire contents of the third tab page would shift down each time the project was opened. (It got really bad if you didn't look at that page for a few days, and the next time you ran the program, you had to scroll down past all the blank space that had built up before getting to any content.) That was relatively easy to work around by selecting everything and dragging it back up to the top.
Since the project has gone into maintenance/enhancement mode, the third tab page hasn't had any problems, but several controls on the fourth tab page are being re-sized (a small increase in width) or shifted left (a large decrease in X-position). Again, these same controls are affected each time the project is opened, so if you don't fix them each time, they'll continue to get further away from their correct settings.
The problem description is a lot like this other question; one notable difference is that the designer source file is not changed, i.e., I can open the designer source file in a separate text editor and see the correct values for location and position of all the affected controls, while at the same time I have the project open in Visual Studio and see the incorrect values in the Properties window. (Doing a "Save" or "Save All" doesn't affect the designer source file after just opening the project, but changing anything on the form and then saving it will make the source file match the incorrect values from Visual Studio.)
Any ideas about why Visual Studio is displaying the form incorrectly? I'd really like to avoid having to spend the extra time to fix it every day. And I'm not keen on adding code to the constructor to re-set those properties, as suggested elsewhere (violation of SPOT/DRY rule, you know--fraught with peril).
You can compare the Designer.vb file of the problem form from one version to the next. (Click Show All Files in Solution Explorer). That should tell you what is being changed and maybe you can find a workaround.
I've had similar problems that were resolved by uninstalling and reinstalling Visual Studio.
I finally found a way to get around this. When I set the affected form's Minimum Size property in the designer to something other than 0,0 (such as the current size of the form) some of the controls relocate themselves the next time I open the form. Setting Minimum Size back to 0,0 resolves it. The affected controls either have no Anchor setting or have Anchor set to Bottom.
So its seems the combination of Anchor Bottom and non-zero Minimum Size is what makes this unwanted movement happen.
I am wondering if anyone knows how to pull this off. Here goes.
I have a multi monitor setup, and I maximize Visual Studio to both windows. I create a new vertical document tab control, so that I have one document tab control in each physical screen. This is fine.
Now, I want to be able to make them work as if they were connected. I want to have the designer on one side, and the code related to the displayed designer on the other window.
I'd like it to have the following functionality:
If a item is double clicked on the solution explorer, open designer/code in both tabs.
When a document is selected in either pane, open appropriate file in the other pane.
Make the designer view refresh on edit, or periodically.
Any ideas on how I could pull this off?
Try to check (wait) for VS 2010 (beta now). There should be multi monitor support.