Ejemplo 1: cómo ejecutar su código en texto sublime
Step1: Go to tool this is loacted at the top
Step2: click build
Shorcut: a shortcut to run it is ctrl+b
Ejemplo 2: ejecutar cmd a través de 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)
Ejemplo 3: ¿cómo ejecuto código en texto sublime?
for javascipt, command B doesn't seem to work for me.
It does work for python programmers though. To code,
I use Processing.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)