visual-studio 如何在 Visual Studio 2010 及更高版本中重置缩放

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3770829/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:28:25  来源:igfitidea点击:

How do you reset the Zoom in Visual Studio 2010 and above

visual-studioide

提问by Brett Veenstra

How do you reset the "Zoom" in VS 2010 and above back to normal?

您如何将 VS 2010 及以上版本中的“缩放”重置为正常?

CTRL+SCROLL WHEELlets you zoom in/out with Visual Studio 2010/2012/2013/2015/2017, but I'd like to get back to the initial 100%.

CTRL+SCROLL WHEEL允许您使用 Visual Studio 2010/2012/2013/2015/2017 放大/缩小,但我想回到最初的 100%。

回答by Oded

There is a select box for this at the bottom left of the editor window - choose 100% ;)

在编辑器窗口的左下角有一个选择框 - 选择 100% ;)

zoom control

变焦控制

I was unable to find a keyboard shortcut for it, though zooming in and out can be done using Ctrl + >and Ctrl + <.

我无法找到它的键盘快捷键,但可以使用Ctrl + >和完成放大和缩小Ctrl + <

Please note the horizontal scroll bar must be turned on to see the zoom level.

请注意水平滚动条必须打开才能看到缩放级别。

Tools / Options / Text Editor / All Languages / Scroll Bars

工具/选项/文本编辑器/所有语言/滚动条



Another option (Visual Studio 2013/2015) is to use Ctrlwith the mouse wheel (up to zoom in, down to zoom out).

另一种选择(Visual Studio 2013/2015)是使用Ctrl鼠标滚轮(向上放大,向下缩小)。

回答by Dan Puzey

There's a zoom control in the bottom-left of the code editor. You can pick 100% from there, or type it by hand.

代码编辑器的左下角有一个缩放控件。您可以从那里选择 100%,或手动输入。

回答by silkfire

In Visual Studio 2015/2017/2019(easy to miss if using a dark theme):

Visual Studio 2015/2017/2019 中(如果使用深色主题很容易错过):

enter image description here

在此处输入图片说明

回答by Registered User

You can try VSCommands extension from Visual Studio Gallery, it adds several new features around zooming in VS2010

您可以尝试Visual Studio Gallery 中的 VSCommands 扩展,它在 VS2010 中添加了几个关于缩放的新功能

alt text

替代文字

回答by Gedas Kutka

Visual Studio 2017 has an extension "Reset Zoom" by Mads Kristensen and it adds a keyboard shortcut (Ctrl+0, Ctrl+0). https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ResetZoom

Visual Studio 2017 具有 Mads Kristensen 的扩展“重置缩放”,并添加了键盘快捷键(Ctrl+0、Ctrl+0)。 https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ResetZoom

By default, the keyboard shortcut is Ctrl+0,Ctrl+0 but can be changed to be whatever you like.

默认情况下,键盘快捷键是 Ctrl+0、Ctrl+0,但可以更改为您喜欢的任何快捷键。

I also have R# and the default shortcut did not show up for me but manually applying it worked.

我也有 R# 并且默认快捷方式没有显示给我,但手动应用它有效。

Go to Tools -> Options -> Environment -> Keyboard and look for the command View.ZoomReset to change the keyboard shortcut.

转到工具 -> 选项 -> 环境 -> 键盘并查找命令 View.ZoomReset 以更改键盘快捷键。

回答by kcho0

In Visual Studio Ultimate 2013, at bottom-left from screen:

Visual Studio Ultimate 2013 中,屏幕左下角:

enter image description here

在此处输入图片说明

回答by Madhi

If you are using latest version you can also resize the content in visual studio by selecting

如果您使用的是最新版本,您还可以通过选择调整 Visual Studio 中的内容大小

ctrl+ will zoom in and ctrl- will zoom out.

ctrl+ 将放大而 ctrl- 将缩小。

to do manually goto

手动转到

preference->settings

首选项->设置

and UserSettingfile will be opened in the editor change.For default zoom

UserSetting文件将在编辑器更改中打开。默认缩放

window.zoomlevel:0

window.zoomlevel:0

and to zoom in

并放大

window.zoomlevel:1,2,3......

window.zoomlevel:1,2,3......