Visual Studio 2010 looks "zoomed in" - visual-studio-2010

Today, I installed Visual Studio 2010 Professional on a new laptop with a fresh Windows 7 Ultimate 64-bit install. I, being quite used to the look of Visual Studio 2010, instantly spotted that something was wrong. It seems that the Visual Studio application is "zoomed in", in a way. The text is much larger (even though it says that the zoom level is 100%, and the text size is 10, which is the same as what I used before), and generally, so are the other windows like the Solution Explorer and Output console. The quality of the icons and images is also very bad.
Here are two comparison images (I wasn't allowed to post images, so some links will have to do):
This is the look that I'm used to. I see plenty of text in the windows, and the icons are fine.
http://i51.tinypic.com/2mq8dau.png
This is what greeted me when I installed VS2010 on my new laptop. The icons look stretched, and I can fit a lot less code in the window.
http://i56.tinypic.com/35k0fo4.png
The screen resolution on my old computer is 1920x1200 and the resolution on my new computer is 1920x1080. (I resized the VS window on my old computer to about 1920x1080 to show the difference).
It looks like my image host resized the images as well, but you should still be able to see the difference.
Has anyone had the same problem? I'm hoping it's just some visual settings. If anything is missing, I will be happy to provide more information.
Thanks in advance.

It seems your Font Size DPI is at 150% on the second screenshot. If you right click on the Desktop and select Personalize > Adjust Font Size (DPI)* you should be able to see what it is currently set at.

Check
that your screen is at native resolution (there can only be one, the native max)
that your OS font is
at normal size
antialiasing (i believe windows calls that cleartype or something)
the screen density is 'standard' (usually 96DPI IIRC)
I strongly suspect the latter (the DPI setting). It's under
Desktop Properies
Display Properties
Display Settings
Advanced
DPI Settings
in my Windows

If you hold down Ctrl and roll the wheel on the mouse it will zoom it in and out. You can then get the desired size that you want. I hope that solves it.
EDIT:
Also if you go to Tools->Options and then under Environment->Font and Colors you can then customize the font size for the whole application.

I didn't find any setting that could case this effect.
Did you try reseting the settings of visual studio (Tools - Import and Export Settings) or Import the settings of your working maschine.
Maybe you have configured big-icons / big-font in windows?

Related

Font differences between Visual Studio 2019 and VS Code

I'm trying to make VS Code editor to look exactly like Visual Studio. I made sure the font settings are exactly the same, however text still renders differently in VS Code (it seems "lighter").
Is there any way to fix this issue?
In the image below the top text is copied from Visual Studio while the bottom one is copied from VS code.
I know the difference is subtle but is still pretty noticeable.
Font rendering in VSCode has been a reoccurring issue throughout a good portion of the editors life time. Font rendering, especially in portable GUI's, is affected by several different layers, for example:
Your Graphics Card can affect the way font is rendered (you can try adjusting the graphic cards settings manually).
Your Monitor, obviously, affects rendering. In fact your monitor has a huge impact. (Try playing with your Monitor's Settings)
The color settings that are offered by your OS may have an impact (often times the color settings are the same as the graphic card settings though. Which means you can just use your OS's GUI to adjust your cards settings in some cases (Not on Ubuntu though))_
Somethings are out of your control, like:
VSCode, it is written using Electron v6. Not only does Electron impact font rendering, but when VSCode switched it Version 6 a lot of people reported a decrease in the editors font rendering quality.
VSCode also implements Anti-Aliasing tools, but as far as I can tell, they auto configure, so you have no control over this. These tools are likely to be one of the biggest causes to the difference in rendering you see, between VS IDE & VS CODE. There is a tool however that may give you some control over the Visual Studio side of rendering that I share a link to below. And just as an FYI, the Anti-Aliasing that VSCode uses is called Sub-pixel Rendering, which is something that Visual Studio doesn't implement as far as I can tell.
The Area You Have the Most Control in:
There is ONE tool/thing that you have 100% control over, that also greatly affects font-rendering, and that is the font that you decide to use. When choosing a font, you have the choice of equipping an OTF, or a TTF. In my personal experience, OTF's render better 90% of the time. The difference is in how they are created.
TTF fonts are made using quadratic Beziers.
OTF fonts are made using cubic Beziers.
Links above are the same
Fonts use something called font-hinting
Font hinting. Essentially font-hinting is a list of instructions that dynamically changes the way a font is rendered, by using the rasterized grid background as a parameter. adjust the display of an outline font so that it lines up with a rasterized grid. Choosing a quality font equipped with good hinting is critical for non-blurry readable text.
Many people choose font because like the way they look, or the italic version of the font they use is popular. When choosing a font, it is extremely important to choose, not the coolest one, but the one that renders with the highest quality, and is the easiest for you to read.
Well Rendering Fonts:
Not only are their fonts that render well, with ligature support, but the best rendering fonts are always free IMO. Bellow are Fonts that use font hinting and have top notch rendering abilities.
JetBrains Mono (JetBrain's Font & My Personal Favorite)
Cascadia Code (Microsoft's Programming Font from 2019)
Fira Code (Not that old, but not that new either. Is loved by many.)
Fira Mono (No Ligatures, Different Font than Fira Code)
Consolas (A classic)
Menlo (Another Classic)
The top 4 are at the top of the list because they receive updates ever few months. I don't think Menlo & Consolas receive regular updates, but they aren't left forgotten either, the are updated every year or two.
To finish with as solid of an answer as I can provide:
_"Getting VSCode to render like the Visual Studio IDE, is not something that you will probably get, with 100% satisfaction, getting an exact match with all of the different factors is just an extremely and possibly impossible thing to due. You can probably make the way the two pieces of software render, more a like, not in functionality, but in looks. It would probably help a great deal to make sure that everything that affects rendering is up to date, editor, IDE, fonts, tools, ect... From their you can try different versions, and see if maybe an older version of VSCode rendered in a way that is preferable to you. You should also play with your monitors settings. I have found that I can accomplish a great deal just through the buttons under the face of my monitor. Check Visual Studio for any rendering settings it might have, VSCode doesn't have much available, but maybe Visual Studio IDE does (I haven't used the IDE in 5 years so IDK if it does).
On a final note:
Their is one tool that could help you, I haven't used it, because it isn't for VSCode, it's for Visual Studio, but it might give you more control than you have now. The tool is called..."_
Text Sharp (Click Here to see it in the VS Market Place)

Bad Font Scaling in Visual Studio

Whenever I scale the code editor in Visual Studio 2015 it makes the font blurry instead of properly scaling it. I'm using the default font (Consolas). Changing the font size in the settings works, however, that's not a solution for me as I tend to change the font frequently based on how much code I need to see at once (for some reason I generally prefer bigger font).
I have not used VS for about a month, and so I may have installed something that messed it up or something.
Here's what I'm talking about:
100% scale (fine)
200% scale (blurry)

Visual Studio 2015 SSDT-BI Designer Font Size

Something has changed in VS2015 in the past week which has caused all of my SSDT-BI design files to appear with a high level of zoom and increased font size. Everything else in VS is fine. I've tried everything in the font and other options that I appear to be related and nothing seems to make a difference. Notice how the text no longer fits in the boxes in the designer even after being scaled down to 70%. The font size in the "Connection Manager" window is significantly larger than the other VS windows.
I'd like to avoid reinstalling VS2015 if possible. Any ideas?
Thanks,
Ian
I never found a way to fix this just through the config. Uninstalling SSDT-BI and reinstalling fixed the issue. A bit faster than reinstalling all of VS2015 but there should be an easier solution.
There isn't an official fix for this; it seems that the issue has thus far been ignored by Microsoft. However, I have noticed that it happens for me most often when I have the font size increased to 125% in the Windows 10 display settings.
Try setting the Font Size scaling to 100% and then log out; it should be better when you login and relaunch. This imperfect solution works for me 90% of the time, and is faster than reinstalling.
note if the scaling is already set to 100% then set it higher, and then back down to 100%.

How can I increase the scrolling sensitivity in Visual Studio?

I've encountered a weird issue in which that the mouse wheel scrolling sensitivity when browsing code is slow, but however when I open an older project the mouse's scrolling speed is normal.
If I create a brand new project, scrolling speed is normal.
It should be like this:
..but is instead like this (from an older project):
I've looked around but however the only results suggest increasing the DPI on the screen, but however this can't be right since the scrolling speed differs between projects on the same computer.
How can I reset the scrolling speed of my project's code back to normal?
Turns out that it's an issue related to Windows 8, 8.1, and earlier versions of 10.
I had set the scrolling speed via PC Settings, but however (for some unknown reason) there seems to be two separate settings for the mouse scrolling speed: one for PC Settings and one for Control Panel.
This issue is simple to resolve; simply adjust the mouse's scrolling speed via Control Panel instead of Settings. Doing this also seems to change the PC Settings' value also.
This is no longer an issue with Windows 10 since the November 2015 update, with Visual Studio 2017. It is present in Visual Studio 2019, to fix this you'll want to refer to Swifty's answer.
This problem is still happening in 2020. I'm using VS 2019 Community with the latest Windows 10 update. I had to go here in the Options dialog to change the scroll speed.
Tools >> Options... >> Text Editor >> Advanced >> Scrolling sensitivity
From there, you can adjust the vertical and horizontal scrolling speeds.
I've encountered that issue, too. On my machine (a notebook), it appears to happen under the following circumstances: I open VS2017 without external monitor first. When I then plug in the external monitor and move the VS-window onto there, then the scorlling-speed is super-slow. Closing and reopening VS solves the issue in this situation. Probably, opening a new project will also reset VS appropriately, so this might be a viable explanation.
Go to the registry editor
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Elantech\SmartPad
Then set the scrollControll_mode value to 1.
Via Reddit

visual studio designer dpi setting

I've learn how to manage different DPI settings the hard way, so that at runtime my applications are properly displayed.
But there is still a big issue with Design time Visual Studio.
Say I build an application at 96 dpi and I switch my display to 120 dpi for testing purposes.
Now IF I open a form designer at 120 dpi, the form is resized according to 125%, the controls moved aso! :-(((
So I try to avoid reopening forms, but that's NOT a nice solution, isn't it?
Is there by any chance a design time setting to prevent form to resize?
Not a solution but possibly a workaround: do not test on your computer but on a VM or other computer and do not open the solution on a computer with big fonts.
And we found that we cannot use the AutoScaleMode = Dpi.Font setting. That will randomly resize forms when we open them in the designer. Dpi or None seem to work.
Although this question is already old, I want to share my workaround.
Keep the Form’s AutoScaleMode = Font. This works fine, if you control the rest correctly.
Set in your Forms Designer: Font = MS Sans; 11px. Basically, specify your Fonts in Pixel, instead of Points. So Visual Studio won't re-scale anything if the system's DPI change.
In the Forms Ctor, after InitializeComponent, re-set: Font = SystemFonts.DefaultFont. Now, at run time, Fonts will use Point-based sizes again, and you get nice high-DPI GUI.
Enable DPI-Awareness, either through a manifest or by API function SetProcessDPIAwareness
You can find the details of my (hard) learning trail on my Blog: http://www.sgrottel.de/?p=1581&lang=en

Resources