Skip to content

Instantly share code, notes, and snippets.

@corbanb
Last active May 2, 2022 22:56
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save corbanb/d0d6bdcfbd8eb455ce99 to your computer and use it in GitHub Desktop.
Save corbanb/d0d6bdcfbd8eb455ce99 to your computer and use it in GitHub Desktop.
Sublime Text - Tools > Build System > New Build System

Build Tools for Sublimetext

  • Add new build systems via Tools > Build System > New Build System.
  • Save files as Language.sublime-build
  • Any commandline tool for compiling code can be used.
  • Cmd + B (OSX) will build files and send output to the Sublime Console

Example Files

Submlime Examples

Sublime Settings

Here you can see where to create new builds and to setup automatic build types. Sublime Build Menu

// Sublime Text - Build System for Javascript
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
// Sublime Text - Build System for PHP
{
"cmd": ["php", "$file"],
"selector": "source.php"
}
@adeleke5140
Copy link

I'm on Ubuntu 18.04 and I tried the steps here. Unfortunately, nothing is showing in my console
node error

@Saurabh7339
Copy link

hey Folks, i was trying to use javascript for Competitive Programming . i can't find a way to take the input . I came across readline() function but this is not working in sublime-text3 . please help !

@alirezatc
Copy link

Where should we save the file in (macOS)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment