Problems with fonts in Visual Studio, bad quality - visual-studio

Since I started using visual studio I have been having a problem with all fonts.
They just all look bad in Visual Studio, as if they have too many pixels.
In the image below, the first line is a normal font, as it should be. In the second line is Visual Studio, the same font, same size, but very ugly, it even seems to be stretched.
The only way I found to get around this is to go to other programs like Adobe XD, put the text I want and save it as an image, then I go to Visual Studio and put it as an image.
But, this is a problem, since if I want to change the text size or change the content of the text it will not be possible.
Edit:
In program.cs I changed the following line to true and improved it a lot:
Application.SetCompatibleTextRenderingDefault(true);
I think it can still improve.

Related

How do I edit the ico file Visual Studio creates for me?

In Solution Explorer, Right click -> Add... Icon file.
The file gets created, but looking at it in Visual Studio, it is uneditable. It includes multiple mips. If you open in external editor, it opens paint. If you then make changes and save it, it asks to save it elsewhere and doesn't affect the original ico.
The thing is, I'm sure this has worked for me before. I'm just not sure what's happening now. Can anyone enlighten me?
The issue you're experiencing is that Visual Studio does NOT know how to edit PNG targets - even though it adds them to your ico by default.
You'll notice that if you have the image edit bar up, you can in-fact edit the BMP target ones (including pasting over from a more capable image editor 😀). Further oddness on visual studio's part, you don't appear to be able to add back the PNG targets, so if you delete them they're gone forever unless you have an external ICO editor (which I assume would mean you wouldn't be using the VS one anyway).
Your best bet if you're committed to continuing in VS (several free websites available that will do this for you given some images) is to clear out the unused versions, and add BMP targets for the sizes you care about. The max for BMP is 24 bit, so be aware, but you should be able to keep a fair amount of fidelity, and still keep your transparency (there is a transparent color, and if you paste in with transparency the editor will automatically fill that in for you) - all while keeping the same sizes as the PNG targets.
Hope that helps!

Is there a way to force the Visual Studio document tabs to a specific width?

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

Visual Studio - Background Highlighting

In notepad++ there is a function to highlight specific parts of code with a background-color. This is very usefull when the code grows up. Is there anything equal for Visual Studio (using the community-version here).
Here's the function of notepad++:
Would be seriously very handy having this kind of highlighting possible in Visual Studio. Google wasnt a help so far. I mean, instead of searching for code 10% of the time I could better invest it into coding itself.
Thanks very much!
look at Tools-> Options-> Fonts and Colors -> Select Show Setting For and change Dispay Items to Highlight current line.
take care.

What does this Visual Studio (2013 professional) magnify glass icon mean?

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.

Visual studio setting or extension to highlight edited lines?

I want to be able to see background highlighting on lines I have edited in Visual Studio 2010.
I know the thin strip next to the line numbers column shows edits in Green, but this isn't large enough/obvious enough.
Is there any setting or extension to help me out?
I want something like VS10x Method Block Highlighter that comes with the VS10x Code Map extension, but I was wondering if there were any options that are free or automatically highlight edited lines.

Resources