sublime how to open cmd
##go to preferences ->Package Setting ->Terminal ->System Deafult
-> clear and paste the below code and save it
{
"terminal": "cmd.exe",
"parameters": [],
"env": {}
}
sublime how to open cmd
##go to preferences ->Package Setting ->Terminal ->System Deafult
-> clear and paste the below code and save it
{
"terminal": "cmd.exe",
"parameters": [],
"env": {}
}
open sublime text using terminal
//create new folder using terminal or open any existing
npx create-react-app newapp
//newapp is new folder. now open it
cd newapp
//now run following code
sublime .
//your folder will open in visual studio code. for sublime enter follwing code
code .
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us