What is open-in-browser package keyboard shortcut in Atom on Windows?

3.5k Views Asked by At

I am using Atom on Windows.

I would like to use a keyboard shortcut to open my HTML page in a browser but I can't find such a shortcut for Windows. Is there a shortcut in Atom for this?

2

There are 2 best solutions below

3
On BEST ANSWER

Ctrl-Alt-Q on the open HTML file, according to the official site. Curiously, there are some reports of the shortcut not working so it could be a windows bug, works fine on OSX, at least v0.4.7.

Source here

Another way to check the shortcut is to look for it on atom's command palette (ctrl-shift-p):

enter image description here

If the specified shortcut still won't work and you wish to try to manually bind it, you can try opening atom's keymap.cson file:

enter image description here

and try setting the following in the keymap.cson file:

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

enter image description here

Save the file and try the shortcut.

Atom's manual in-depth information about keymaps

0
On

I added this lines in keymap. When I click in Editor and I also click workspace, It works well.

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