有没有办法使用键盘快捷键缩放 Visual Studio 文本编辑器?
昨天,我发现自己需要缩放 Visual Studio 文本编辑器,但没有鼠标(不要问)。通常,我通过按住 CTRL 并滚动鼠标滚轮来完成此操作。我也无法弄清楚如何切换到可以在文本编辑器窗口左下角指定缩放级别的区域。
所以我想我有两个问题:
- 是否有一个菜单设置我可以通过键盘导航来设置缩放级别吗?
- 更好的是,是否有类似的键盘命令来按住 CTRL 并滚动鼠标滚轮?
Yesterday I found myself needing to zoom my Visual Studio text editor and was without a mouse (don't ask). Typically I do this by holding down CTRL and scrolling the mouse wheel. I also couldn't figure out how to tab into the area where you can specify your zoom level in the lower left hand corner of the text editor window.
So I guess I have two questions:
- Is there a menu setting somewhere that I could have navigated to via the keyboard to set my zoom level?
- Even better is there a similar keyboard command to holding CTRL and scrolling the mouse wheel?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我不知道是否有菜单选项,但有键盘快捷键可以设置缩放级别。
ctrl+shift+. 放大
ctrl+shift+ , 缩小
I don't know if there is a menu option, but there are keyboard shortcuts to set the zoom level.
ctrl+shift+. to Zoom In
ctrl+shift+, to Zoom Out
就我而言,ReSharper 重新分配了 Ctrl + Shift + , (又名 Ctrl + Shift + < ) 到 ReSharper 的“最近编辑”命令,我想将其重置回 Visual Studio 2012 的缩小。
为此,请转到工具 ->选项。在环境下 ->键盘,从 ReSharper.ReSharper_GoToRecentEdits 命令(或任何其他命令)中删除 Ctrl + Shift + , 热键,并分配 View.ZoomOut命令返回到 Ctrl + Shift + , (使用全局或文本编辑器模式)。
In my case, ReSharper reassigned Ctrl + Shift + , (aka Ctrl + Shift + < ) to ReSharper's Recent Edits command, and I wanted to reset it back to Visual Studio 2012's zoom out.
To do that, go to Tools -> Options. Under Environment -> Keyboard, remove the Ctrl + Shift + , hotkey from the ReSharper.ReSharper_GoToRecentEdits command (or any other commands), and assign the View.ZoomOut command back to Ctrl + Shift + , (use either Global or TextEditor mode).
用于放大/缩小的 Visual Studio Code Linux 键盘快捷键:
Visual Studio Code Linux keyboard shortcuts for zoom in/out:
如果有人正在寻找第一个问题的答案(就像我一样),您可以按 Ctrl+F2,然后按 Tab 键三次。这在 VS 2019 中有效,但在 2017 中似乎不起作用。
If anyone is looking for an answer to the first question (as I was), you can hit Ctrl+F2, then hit the Tab key three times. This works in VS 2019, but doesn't appear to work in 2017.
只是 2020 年 9 月的更新。版本 1.49。 Win 10:
通过应用程序内的键盘快捷键( Ctrl + k Ctrl + s .. 或 .. 文件菜单、首选项、键盘快捷键):
放大:Ctrl + = .. 或 .. Ctrl + Numpad_Add .. 或 .. Ctrl + Shift + =
缩小:Ctrl + - .. 或 .. Ctrl + Numpad_Subtract .. 或 .. Ctrl + Shft + -
重置缩放:Ctrl + Numpad_0
注意:用于 VS-Code(可能/不相同 ViZStd)
Just an update for 2020-Sep. Ver 1.49. Win 10:
From keyboard shortcuts in-app ( Ctrl + k Ctrl + s .. or .. File Menu, Preferences, Keyboard Shortcuts):
Zoom In: Ctrl + = .. or .. Ctrl + Numpad_Add .. or .. Ctrl + Shft + =
Zoom Out: Ctrl + - .. or .. Ctrl + Numpad_Subtract .. or .. Ctrl + Shft + -
Reset Zoom: Ctrl + Numpad_0
NB: for VS-Code (may/Not be same ViZStd)
如果没有被篡改或更改,Microsoft 的默认辅助功能设置为:
放大 --> Ctrl + +
缩小 --> Ctrl + -
这是链接到 Microsoft 的官方 VS 代码辅助功能页面
希望它对其他人有帮助
The default accessibility setting by Microsoft, if they havent been tampered or changed are:
Zoom In --> Ctrl + +
Zoom Out --> Ctrl + -
Here is the link to the official Microsoft's VS code accessibility page
Hope it helps someone else