Search code examples
htmlsublimetextsublimetext3linux-mint

Sublime 3 HTML Build Linux


I'm trying to do a custom build for Sublime 3 so that it opens chromium and the .html document that I'm working on. I'm able to launch Chromium with this:

"shell_cmd": "/usr/bin/chromium-browser"

How do I also open the file I'm working on?


Solution

  • You should use the $file build system variable to refer to the full path of the current file:

    "shell_cmd": "/usr/bin/chromium-browser $file"