How to Create a Javascript Console in Sublime Text
Download the Node installer from the project's homepage and run it., Go to "Tools > Build System > New Build System" in the top bar. , Paste this code into the resulting new tab that Sublime Text opened, replacing anything else in it: { "cmd"...
Step-by-Step Guide
-
Step 1: Download the Node installer from the project's homepage and run it.
Simply use the default settings.,, To do this, open terminal and run "which node".
This will print out the path to the node binary. , Now you have created your build system! ,, This is the build system that you just created., A console will now appear in a pane at the bottom of the window, showing the results of your script! -
Step 2: Go to "Tools > Build System > New Build System" in the top bar.
-
Step 3: Paste this code into the resulting new tab that Sublime Text opened
-
Step 4: replacing anything else in it: { "cmd":
-
Step 5: "selector": "source.js" } If you receive a "" error
-
Step 6: then you'll need to change "node" in the code above to the path where node is located.
-
Step 7: Save the file as "node.sublime-build" in the default "user" folder.
-
Step 8: Open the Javascript file that you want to run in Sublime Text.
-
Step 9: Go to "Tools > Build System" in the top bar and select "node".
-
Step 10: Build the Javascript file
-
Step 11: using either the build shortcut (Ctrl+B for Windows
-
Step 12: and ⌘ Command+B for Mac)
-
Step 13: or by choosing "Build" from the "Tools" menu.
Detailed Guide
Simply use the default settings.,, To do this, open terminal and run "which node".
This will print out the path to the node binary. , Now you have created your build system! ,, This is the build system that you just created., A console will now appear in a pane at the bottom of the window, showing the results of your script!
About the Author
Angela Scott
Enthusiastic about teaching pet care techniques through clear, step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: