添加快捷方式以在浏览器中打开特定的URL-Intellij快捷方式

时间:2019-01-21 18:29:30

标签: intellij-idea keyboard-shortcuts

我想添加快捷方式以在IntelliJ中打开特定的URL(比如localhost:3000)。我阅读了文档,并试图通过弄乱Keymap自己找出答案,但是没有运气。这可能吗?我想要的是创建一个打开特定URL的快捷方式。如果我的自定义快捷方式是Alt +;,则应打开http://localhost:3000。在IntelliJ中可行吗?

1 个答案:

答案 0 :(得分:1)

是的,您可以按照以下步骤进行操作...

1。为Localhost定义外部工具

  • 文件>设置...
  • 工具>外部工具
  • 定义您的工具
    • 程序:C:\ Program Files(x86)\ Google \ Chrome \ Application \ chrome.exe(在Windows 10中)
    • 参数:http://localhost:3000

enter image description here

2。定义快捷方式

  • 文件>设置...
  • 按键图
  • 选择外部工具>右侧的Localhost
  • 右键单击并选择“添加键盘快捷键”

enter image description here

  • 输入快捷方式
  • 您应该在对话框中看到它

enter image description here

3。使用快捷方式

希望有帮助。

相关问题