Sublime Text 3 building Python IDE

Source: Internet
Author: User
Tags sublime text virtualenv



Sublimecodeintel Code Hint Plugin


Installation steps: 1. Open Package Control[preferences>>package control]2. Enter install to select the associated install Package3. Enter Sublimecodeintel, and then select Install 4. After the installation is complete, you can see the installed plug-in through "Preferences>>package Settings". Configure the Python environment below 5. Click Browse Packages in Preferences to go to Sublimecodeintel and create a new. Codeintel folder in the current path ( The name of the file in Windows is. Codeintel.), then enter into the. Codeintel folder, create a new file "Config.log", enter the profile (following the path "E:/program files/python34/" for example, the actual configuration should be modified according to the specific installation path):
 
"python3":{ 
"python":"C:/Program Files/python34/python.exe", 
"pythonExtraPaths":[ 
"C:/Program Files/python34/DLLs", 
"C:/Program Files/python34/Lib", 
"C:/Program Files/python34/Lib/lib-tk", 
"C:/Program Files/python34/Lib/site-packages", 
] 
}








Sidebarenhancements expands the number of menu options in the sidebar, providing a delete option









Pylinter uses this plugin to allow Pyhton to be automatically normalized when saved and to display icons for violation of specifications.



I installed the Pylinter plugin in St3, but did not succeed, the following error occurred:



"Pylinter could not automaticallydetermined the path to lint.py. Provide one in the settings file usingthe pylint_path variable. Note:if you is using a virtualenv, the problemmight is resolved by launching Sublime Text from correct virtualenv.
Workaround:



1) to the official website https://pypi.python.org/pypi/pylint#downloads Download: Pylint-1.xx.tar.gz,dos run it, or directly run the setup.py,



2) Open ST3, then ctrl+shift+p, remove Package,remove drop this pylint,package. Can be replaced by a sublimelinter installation.



(Install Pylint



1. Download the GZ package from the webpage just now, then open it with WinRAR, then



2, CD to the downloaded folder, and then use the Python setup.py install in cmd input pylint is prompted to indicate that the installation was successful. )



Installation complete Modify the following configuration file:


 
{
// When versbose is ‘true‘, various messages will be written to the console.
// values: true or false
"verbose": false,
// The full path to the Python executable you want to
// run Pylint with or simply use ‘python‘.
"python_bin": "python",
// The following paths will be added Pylint‘s Python path
"python_path": [ "C:/Python36-32/python.exe" ],
// Optionally set the working directory
"working_dir": null,
// Full path to the lint.py module in the pylint package "pylint_path": "C:/Python36-32/Lib/site-packages/pylint-1.8.2/pylint/lint.py", // Optional full path to a Pylint configuration file
"pylint_rc": null,
// Set to true to automtically run Pylint on save
"run_on_save": true,
// Set to true to use graphical error icons
"use_icons": false,
"disable_outline": false,
// Status messages stay as long as cursor is on an error line
"message_stay": false,
// Ignore Pylint error types. Possible values:
// "R" : Refactor for a "good practice" metric violation
// "C" : Convention for coding standard violation
// "W" : Warning for stylistic problems, or minor programming issues
// "E" : Error for important programming issues (i.e. most probably bug)
// "F" : Fatal for errors which prevented further processing
"ignore": [],
// a list of strings of individual errors to disable, ex: ["C0301"]
"disable": [],
"plugins": []
}





Sublimetmpl new File template plug-in



1. Set up your own information in the Settings-user:


 
{ 
"disable_keymap_actions": false, // "all"; "html,css" 
"date_format" : "%Y-%m-%d %H:%M:%S", 
"attr": { 
"author": "chen", 
"email": "[email protected]", 
"link": "http://www.baidu.com/" 
} 
}











Terminal Open a command window for various command operations






AUTOPEP8 allow automatic formatting when saving code



1. Set up your own information in the Settings-user:


{
     "format_on_save": true,
}
Automatically format the Python code according to the PEP8 specification. After installation, add the following configuration to automatically format the file when saving: 


Anaconda automatic Matching keywords and other practical functions, effectively improve development efficiency






SUBLIMEREPL Replace the output console of the ST3 crtl+b (press ESC to exit)



Defining shortcut keys F5


 
[
{
"caption": "Tmpl: Create python", "command": "sublime_tmpl", 
"keys": ["ctrl+alt+n"], "args": {"type": "python"} 
},
{
"keys": ["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]





Sublime Text 3 building Python IDE


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.