How to view in browser an html file with Sublime text with a keys shortcut

To launch an html with a browser it’s easy:

  • open the command palette
  • type install and choose install package
  • wait
  • type view in browser, install it
  • go in preferences and choose keybinding and write this:




 { "keys": [ "alt+x" ], 
    "command": "view_in_browser",
    "args": { "browser": "chrome" } },

Chosoe the combination you want (where I put “alt+x”)

Go then in

preferences -> package settings -> View in browser and Setting users

and write this

{
"browser": "chrome",
}

New tutorial in case it does not work (2023)


Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.