简体   繁体   English

更改intellij/android studio 工具窗口快速访问快捷方式

[英]Change intellij/android studio tool window quick access shortcuts

Is it possible to change the quick access shortcut numbers for a tool window?是否可以更改工具窗口的快速访问快捷方式编号?

ie the numbers next to a tool window name, used by the keyboard shortcut to toggle the window, talked about here即工具窗口名称旁边的数字,由键盘快捷键用来切换窗口, 这里谈到

Yep.是的。 They are listed in Keymap .它们列在Keymap 中 MainMenu -> View -> ToolWindows . MainMenu -> View -> ToolWindows

PS: Idea has a nice Find by shortcut function in Keymap settings page, I used it, to answer your question. PS: Idea 在 Keymap 设置页面中有一个很好的Find by shortcut功能,我用它来回答你的问题。

图标位置截图

In Android Studio, you can change the Keymap this way:在 Android Studio 中,您可以通过以下方式更改键盘映射:

Preferences -> Keymap Preferences -> Keymap

Then open Tool Windows .然后打开Tool Windows You may need to scroll down to see all the options.您可能需要向下滚动才能看到所有选项。 在此处输入图片说明

Right-click on the element you want to assign a new key-stroke.右键单击要分配新击键的元素。 Select Add Keyboard Shortcut .选择Add Keyboard Shortcut Make sure that the rectangle with a plus in it is selected (use your mouse) and press the key-stroke that you want for this item.确保选中带有加号的矩形(使用鼠标),然后按您想要的键击来输入该项目。

在此处输入图片说明

Android Studio will warn you if that key-stroke is already assigned.如果该击键已被分配,Android Studio 会警告您。 Click OK to reassign that key-stroke to the item.单击“ OK以将该击键重新分配给该项目。 It'll warn you one more time that you will need to remove the previous assignment for that key-stroke.它会再次警告您需要删除该按键的先前分配。 Click Remove to proceed.单击Remove以继续。 You should see the updated keystroke in the right-most column.您应该会在最右侧的列中看到更新的击键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM