0

This is probably a really newb question, but I'm trying to learn javascript, and I am very experienced in sublime text and would prefer to use that as my text editor. In this tutorial video, http://youtu.be/yQaAGmHNn9s?t=3m24s He launches his html/js code straight from notepad++. Is it possible to do this from sublime text, and how?

1 Answers1

0

There are several methods.

View In Browser (Plugin)

Use this shortcuts to preview your current file in the browser (More informations and documention on the plugin page). The plugin also works for html pages etc.

CTRL + ALT + F - Firefox
CTRL + ALT + C - Chrome
CTRL + ALT + I - Internet Explorer
CTRL + ALT + S - Safari

JsRun (Plugin)

With this plugin you can run JavaScript code instantaneous in a browser by using

ALT + SUPER + J

where super is either Ctrl (Windows) or Cmd (Mac). Of course you can change the keybindings.

That's all the useful plugins that i found. Note that I found them with the Sublime Text Package Manager "Package Control" with which you can install all kind of plugins.

Build system

In Sublime Text you can create your own build systems. For example you can tell sublime Text to launch a browser and open a file if the build command (or keyboardshortcut Ctrl+B) is ran. Here is a tutorial in which is explained how you create a build system for your purpose.

Guillermo
  • 764
  • 6
  • 15