什么是Windows上的Atom中的开放式浏览器包键盘快捷键?

时间:2016-12-21 00:05:30

标签: html keyboard-shortcuts text-editor atom-editor

我在Windows上使用Atom。

我想使用键盘快捷键在浏览器中打开我的HTML页面,但我找不到Windows的这种快捷方式。在Atom中有一个快捷方式吗?

2 个答案:

答案 0 :(得分:1)

根据{{​​3}},

Ctrl-Alt-Q在打开的HTML文件上。奇怪的是,有一些报告称快捷方式不起作用,因此它可能是一个Windows bug,在OSX上工作正常,至少是v0.4.7。

Open Source - CityGML

检查快捷方式的另一种方法是在atom的命令调色板(ctrl-shift-p)中查找它:

the official site

如果指定的快捷方式仍然无法正常工作,并且您希望尝试手动绑定它,则可以尝试打开atom的keymap.cson文件:

Source here

并尝试在keymap.cson文件中设置以下内容:

'atom-text-editor':
  'ctrl-alt-q': 'open-in-browser:open'

enter image description here

保存文件并尝试快捷方式。

enter image description here

答案 1 :(得分:0)

我在键盘图中添加了这些行。 当我单击“编辑器”时,同时单击“工作区”时,效果很好。

'atom-workspace':
  'ctrl-e': 'open-in-browsers:toggle'
'atom-workspace atom-text-editor:not([mini])':
  'ctrl-e': 'open-in-browsers:toggle'