有没有办法使用键盘快捷键缩放 Visual Studio 文本编辑器?

发布于 2024-09-06 07:21:28 字数 321 浏览 4 评论 0原文

昨天,我发现自己需要缩放 Visual Studio 文本编辑器,但没有鼠标(不要问)。通常,我通过按住 CTRL 并滚动鼠标滚轮来完成此操作。我也无法弄清楚如何切换到可以在文本编辑器窗口左下角指定缩放级别的区域。

在文本编辑器窗口的左下角缩放

所以我想我有两个问题:

  1. 是否有一个菜单设置我可以通过键盘导航来设置缩放级别吗?
  2. 更好的是,是否有类似的键盘命令来按住 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.

zoom in the lower left corner of the text editor window

So I guess I have two questions:

  1. Is there a menu setting somewhere that I could have navigated to via the keyboard to set my zoom level?
  2. Even better is there a similar keyboard command to holding CTRL and scrolling the mouse wheel?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

落在眉间の轻吻 2024-09-13 07:21:28

我不知道是否有菜单选项,但有键盘快捷键可以设置缩放级别。

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

冰魂雪魄 2024-09-13 07:21:28

就我而言,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).

永言不败 2024-09-13 07:21:28

Visual Studio Code Linux keyboard shortcuts for zoom in/out:

  • in: Ctrl + =
  • out: Ctrl + -

Visual Studio Code Linux keyboard shortcuts

快乐很简单 2024-09-13 07:21:28

如果有人正在寻找第一个问题的答案(就像我一样),您可以按 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.

罪歌 2024-09-13 07:21:28

只是 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)

独夜无伴 2024-09-13 07:21:28

如果没有被篡改或更改,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文