sublime text3 configuration Python3

1. Download and install sublime3

2. Install Python or Anaconda

3. Open sublime, tools-> build system-> new build system, writing to a file:

1
2
3
4
5
6
7
{
     "encoding" "utf-8" ,
     "working_dir" "$file_path" ,
     "shell_cmd" "Python路径\python.exe -u \"$file\"" ,
     "file_regex" "^[ ]*File \"(...*?)\", line ([0-9]*)" ,
     "selector" "source.python"
}

  shell_cmd path of python is installed, to pay attention to the format, then ctrl + s, save the file, named fetch python3.6

4. Click the build system can be seen python3.6, select it, and then create a new file, ctrl + s hello.py the named file, enter the code in the file:

1
print( 'hello world!' )

  Then ctrl + b run, running, thus the first step and you're done!

5. But this is no interactive features, such as the prompt input, and a number of keyboard input, the current configuration can not be done, we want to install a plug-in

6. Select tools-> install package control, wait for a successful installation

7. pereference can see the package control, then click on the package control, enter the install package in the search box

8. The question may arise: https: //www.jianshu.com/p/ceb68e69f1ad

9. Search sublimeREPL

10.key blindings binding F5

1
2
3
4
5
6
{
"keys" :[ "f5" ],
"caption" "SublimeREPL: Python - RUN current file" ,
"command" "run_existing_window_command" "args" : { "id" "repl_python_run" ,
"file" "config/Python/Main.sublime-menu" }
}

 11. Code completion plugin: sublimecodeINTEL

1. Download and install sublime3

2. Install Python or Anaconda

3. Open sublime, tools-> build system-> new build system, writing to a file:

1
2
3
4
5
6
7
{
     "encoding" "utf-8" ,
     "working_dir" "$file_path" ,
     "shell_cmd" "Python路径\python.exe -u \"$file\"" ,
     "file_regex" "^[ ]*File \"(...*?)\", line ([0-9]*)" ,
     "selector" "source.python"
}

  shell_cmd path of python is installed, to pay attention to the format, then ctrl + s, save the file, named fetch python3.6

4. Click the build system can be seen python3.6, select it, and then create a new file, ctrl + s hello.py the named file, enter the code in the file:

1
print( 'hello world!' )

  Then ctrl + b run, running, thus the first step and you're done!

5. But this is no interactive features, such as the prompt input, and a number of keyboard input, the current configuration can not be done, we want to install a plug-in

6. Select tools-> install package control, wait for a successful installation

7. pereference can see the package control, then click on the package control, enter the install package in the search box

8. The question may arise: https: //www.jianshu.com/p/ceb68e69f1ad

9. Search sublimeREPL

10.key blindings binding F5

1
2
3
4
5
6
{
"keys" :[ "f5" ],
"caption" "SublimeREPL: Python - RUN current file" ,
"command" "run_existing_window_command" "args" : { "id" "repl_python_run" ,
"file" "config/Python/Main.sublime-menu" }
}

 11. Code completion plugin: sublimecodeINTEL

Guess you like

Origin www.cnblogs.com/wen326/p/11288693.html