(Virtual Desktops)Windows 11/10上的虚拟桌面被人们广泛用于分组和分散他们的计算机桌面工作。该应用程序允许您在一台计算机上运行多个桌面界面,以便您能够在一台计算机设置上同时管理多个任务(manage multiple tasks)。
创建虚拟桌面(create a virtual desktop)并将相关的浏览器窗口组合在一起非常容易,一旦掌握了它,它确实可以提高您的工作效率。管理多个工作流程似乎不再像过去那样繁琐。人们对此功能的一个抱怨是它不舒服的键盘快捷键。在虚拟桌面之间切换的默认键盘快捷键是Ctrl + WinKey + Left 或向右箭头(Right Arrow)键。
这个快捷键的问题是它需要你用双手,这使得它不直观,也不是人们通常喜欢的东西。幸运(Lucky)的是,Windows 允许您对其提供的几乎所有内容进行更改,包括在虚拟桌面之间切换的键盘快捷键。所以今天,我们将向您展示如何在Windows 11/10虚拟桌面(Virtual Desktop)的键盘快捷键。此过程将向您展示如何更改快捷键以使用AutoHotKey在虚拟桌面之间切换。
(Change Virtual Desktop)Windows 11/10更改虚拟桌面快捷方式
您必须遵循的过程非常简单,只需几分钟。由于没有内置设置来修改此实用程序的键盘快捷键,因此您必须下载并安装AutoHotKey。安装完成后按照以下步骤操作。
访问您的桌面屏幕,右键单击桌面的空白部分,然后从出现的新(New)选项中创建一个文本文档。
将此文件命名为“更改 VD(Change VD)快捷方式.ahk”。您可以随意命名文档,但您只需确保文件扩展名是.ahk(用于AutoHotKey),而不是.txt(与文本文件一样)。此文件扩展名可能没有出现在您的计算机上,或者您无法更改它,在这种情况下,您必须在计算机上启用文件扩展名。为方便起见,将此文件保存在桌面上。
右键单击此文件并选择“编辑脚本”选项。此类文件的默认编辑界面记事本(Notepad)将打开。
将以下代码粘贴到空文件中。这样(Doing)做会将虚拟桌面快捷方式从“Ctrl”+ WinKey + 左/右箭头键交换为 Page Down + End Keys按钮。
;Switch to right virtual desktop
PgDn::
Send, {LControl down}#{Right}{LControl up}
return
;Switch to left virtual desktop
End::
Send, {LControl down}#{Left}{LControl up}
return
您也不必将Page Down和End作为从一个虚拟桌面切换到另一个虚拟桌面的快捷键,但建议您选择两者都很少使用且彼此靠近的键。
您可以通过使用首选键更改上面代码中的PgDn(PgDn)和End来修改代码,只要您选择的键在AutoHotKey适用的键中列出,它就可以正常工作。您可以访问autohotkey.com查看列表。
完成后,保存文件并退出记事本(Notepad)。
在您的桌面上,您会找到一个AutoHotKey脚本。双击它或右键单击并进一步选择“运行脚本”以运行它。
从那里开始,脚本将开始运行,您将能够使用您选择的键盘快捷键来浏览 Windows 10 计算机上的虚拟桌面。
您可以通过检查系统托盘(Tray)来验证脚本是否正在运行。
我们希望本文能够帮助您更改虚拟桌面的键盘快捷键。
提示(TIP):您现在还可以使用键盘管理器 PowerToy(Keyboard Manager PowerToy)轻松重新映射键盘快捷键
Change shortcut to switch between Virtual Desktops in Windows 11/10
Virtual Desktops on Windows 11/10 are widely used by people to group and decentralize their computer deskwork. The application allows you to run more than one desktop interface on a single computer, for you to be able to manage multiple tasks at the same time on a single computer setup.
It is very easy to create a virtual desktop and group together related browser windows, and once you get the hang of it, it really gives a boost to your productivity. Managing multiple workflows will not seem as tedious a task as it used to. The one complaint people have had with this feature is its uncomfortable keyboard shortcut. The default keyboard shortcut to switch between virtual desktops is Ctrl + WinKey + Left or the Right Arrow key.
The problem with this shortcut key is that it requires you to use both your hands, which makes it unintuitive and not something that people generally prefer. Lucky for you, Windows allows you to make changes to almost everything it has to offer, including the keyboard shortcut to switch between virtual desktops. So today, we will be showing you how you can change the keyboard shortcut for Virtual Desktop on Windows 11/10. This process will show you how you can change the shortcut keys to switch between virtual desktops using AutoHotKey.
Change Virtual Desktop shortcut in Windows 11/10
The process that you have to follow is very simple and takes just a couple of minutes. Since there isn’t a built-in setting to modify the keyboard shortcut of this utility, you will have to download and install AutoHotKey. Follow the steps below after the installation is complete.
Visit your desktop screen, right-click on an empty section of the desktop, and from the New options that appear, create a text document.
Name this file ‘Change VD shortcut.ahk’. You can name the document whatever you want but you just have to make sure that the file extension is .ahk (for AutoHotKey), and not .txt (as is the case with text files). It may be possible that this file extension isn’t appearing on your computer or that you aren’t able to change it, in which case you will have to enable file extensions on your computer. Save this file on your desktop for convenience.
Right-click on this file and select the ‘Edit Script’ option. The default editing interface for such files, Notepad, will open.
Paste the following code in the empty file. Doing so will swap the virtual desktop shortcut from ‘Ctrl’ + WinKey + Left/Right Arrow key to Page Down + End Keys button.
;Switch to right virtual desktop
PgDn::
Send, {LControl down}#{Right}{LControl up}
return
;Switch to left virtual desktop
End::
Send, {LControl down}#{Left}{LControl up}
return
It is not necessary for you too to have Page Down and End as the shortcut keys to switch over from one virtual desktop to another, although it is recommended for you to select keys that are both, rarely used and lined up close to one another.
You can modify the code by changing PgDn and End in the code above with your preferred keys and it will work just fine, as long as the keys you choose are listed among the ones applicable with AutoHotKey. You can check the list by visiting autohotkey.com.
After doing so, save the file and exit Notepad.
On your desktop, you will find an AutoHotKey script. Double-click on it or right-click and further select ‘Run Script’ to run it.
From there on out, the script will begin to run and you will be able to use the keyboard shortcut of your choice to navigate through virtual desktops on your Windows 10 computer.
You can verify if the script is running or not by checking your System Tray.
We hope that this article was able to help you change the keyboard shortcut for your virtual desktops.
TIP: You can now also use Keyboard Manager PowerToy to remap keyboard shortcuts easily