node.js - Run Node script from Sublime Text 2, is it possible? -


i starting sublime text 2, when create javascript file can run node app.js sublime console or have outside of sublime?

sorry add answer can use built in build system run kind of command want editor pressing ctrl + b (cmd + b) without installing plugins.

go tools -> build system -> new build system

and structure of file should this

{   "shell_cmd": "node myapp.js" // replace whatever want } 

save in default place.

you still have ability ctrl + c kill running commands. downside method don't kind of terminal colouring if you're using custom themes on terminal, you'll see escape sequences in window.

the other caveat saves files on build default, can turn off in tools menu if don't behaviour.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -