how to run in sublime text code example
Example 1: how to run your code in sublime text
Step1: Go to tool this is loacted at the top
Step2: click build
Shorcut: a shortcut to run it is ctrl+b
Example 2: run cmd through sublime
import os, sublime_plugin
class CmdCommand(sublime_plugin.TextCommand):
def run(self, edit):
file_name=self.view.file_name()
path=file_name.split("\\")
current_driver=path[0]
path.pop()
current_directory="\\".join(path)
command= "cd "+current_directory+" & "+current_driver+" & start cmd"
os.system(command)
Example 3: how do i run code in sublime text
for javascipt, command B doesn't seem to work for me.
It does work for python programmers though. To code,
I use Processing.
Example 4: how to run html code on browser via sublime text
Steps to Follow:
1.Press Command-Shift-P (if you use a Mac) & Ctrl-Shift-P (if you use Windows)
to open the Command Palette.
2.Type Install Package until you see that
"Package Control: Install Package" is selected. Press Enter.
3.In the text box, start typing View In Browser until that package is selected.
Once it is, press Enter to install it.
4.Restart Sublime Text.
5.Right Click anywhere on screen and select option : open in browser
6.Bingo! you will land yourself to respective browser and can view your webpage.