Question:
People, maybe someone knows how to run an html file from Sublime Text? In NotePad++ this can be done with the shortcut Ctrl + Alt + Shift + X .
Answer:
And as far as I know, Sublime was created for this purpose to add the functionality you need for yourself;)
Everything is quite simple and depends a little on your OS
First, let's create a new build system
Tools -> Build System -> New Build System...
in the opened window you need to write:
For MacOS
{
"cmd": ["open", "-a", "Google Chrome", "$file"]
}
For Linux
{
"cmd": ["google-chrome", "$file"]
}
For Windows (I have 8.1 but should work on almost everyone)
{
"cmd": ["Путь до браузера", "$file"]
}
У меня это "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
In this case, the double slash is needed for escaping
That's all, save the file as Chrome.sublime-build
Close and reopen SublimeText
We go to
Tools -> Build System
Select Chrome and run open files in it by pressing Ctrl + B