Visual Studio 2010 default zoom level

2019-01-22 00:58发布

Is there a way to set the default zoom level in Visual Studio 2010? The problem is that I find font size 10 to be too small, but font size 11 is too big. It just so happens that 90% zoom level with font size 11 gives the perfect size I am looking for. I would like to be able to have VS automatically always zoom the editor to 90%.

10条回答
虎瘦雄心在
2楼-- · 2019-01-22 01:23

I realize this is a bit old...

But incase anyone comes across this like I have - I use Visual Studio 2012, and just tried this extension: https://visualstudiogallery.msdn.microsoft.com/6e3d9e23-8083-4ce3-8ca2-af846c93ad2b

It sets the default zoom to 91%, which is perfect! Every file I open automatically is at 91%. So, thought I would throw that out there for anyone who needs it. I had to go through some that didn't work unfortunately.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-01-22 01:26

I recommand this extension : http://visualstudiogallery.msdn.microsoft.com/6a7a0b57-7059-470d-bcfa-60ceb78dc752?SRC=VSIDE

"This extension creates a global zoom level so that if you zoom a single window, all editor instances will be updated to that zoom level."

查看更多
不美不萌又怎样
4楼-- · 2019-01-22 01:27

The VSCommands Lite extension appears to do this, judging by this blog post.

I don't think there's any way to do this other than using/writing an extension; macros don't appear to have access to the zoom controls.

If you wanted to write your own custom extension to do this you'd probably be looking at using the IWpfTextView interface.

Another good option is Presentation Zoom.

查看更多
Melony?
5楼-- · 2019-01-22 01:29

I think that Ctrl+Scroll changes the zoom in Visual Studio. Every time you open it, you could just press a key and flick the mouse wheel. I bet you could also write an extension that does this... Though I've never written a Visual Studio extension, so I don't really know what the APIs offer.

查看更多
Deceive 欺骗
6楼-- · 2019-01-22 01:32

As stated by richardwb VSCommands 10 has this option, it's free and will control default zoom level on all open documents.

ZoomExample

Clarification: It seems that VS Commmands doesn't set the default zoom % when Visual Studio is first opened. But it does a good job of keeping everything at the default zoom % after I set it manually a single time on one document. Since I keep VS itself open for long periods this gets me most of what I need.

查看更多
欢心
7楼-- · 2019-01-22 01:33

TroutZoom is my favourite solution and works great with VS2013 !

A simple extension that syncs zoom levels across windows, and sessions VS 2012 and 2013. You can zoom in and out with scroll wheel

N.B. I have also tried the extensions

  • PresentationZoom
  • Global Zoom Level
  • AutoZoomer

and simply

  • font size settings in VS options
  • windows scaling
  • screen resolutions
查看更多
登录 后发表回答