Directly to the question
First create a chajian.py
python writes in
import sublime import sublime_plugin class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.insert(edit, 0, "Hello, World!")
The above code is relatively simple module is a reference to the sublime call its role is to display api
Hello, World!
在
C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\
Create a file folder path to chajian.py into them will load plug-
console input view.run_command ( "example") will be displayed
Hello, World!
note
example and the class name to be consistent oh
directly modify py sublime automatically reloads plugins
Set shortcut keys below said lower