Browser Packages"
2. Create a folder "Cmd" in the directory opened in step 1.
3. Create a python file named cmd.py with the following code in the "Cmd" folder created in step 2.
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)
4. Create a file named "Context.sublime-menu" with the following code in the cmd folder created in step 2.
[
{ "command": "cmd" }
]
5. Reopen Sublime Text
Now you can open the Cmd prompt at the current directory in the right-click context menu.
Run CMD prompt from Sublime Text
1. Click the menu "Preference>