1, Pycharm Common configuration and shortcut keys

Source: Internet
Author: User
1, theme, font and code split line (right Margin) configurationIde&&editor Theme Configuration


Font (color) configuration
Cancellation and setup of code split line

2. IDE layout and full screen settingMoving an item to the right sidebar and then Window->store current Layout as Default in the menu bar can also start Full-screen view on the menu bar view->enter full Screen
To collapse any code fragment: the menu bar code->folding->fold Selection/remove Region
3. Configure the AUTOPEP8 tutorial to make Python code more compliant with PEP8 specificationsCtrl + Alt + L code formatting
Pycharm Configure the Autopep8 tutorial to make Python code more compliant with PEP8 specifications
The explanation of some parameters in AUTOPEP8 4. Coding mode setting and project starting position setting

Python script template settings: File>new>python file/package

The file header specifies that the encoding should be the same as the file Save encoding Method

File>new Project
5. The TAB key is set to 4 spaces File--->settings--->editor--->code Style--->python, remove the check in front of the use Tab character As shown in the following illustration:
6. Common shortcut keys (keymap)

CTRL + D:          # Copy Current line
Shift + Enter:     # Quick Wrap
Ctrl +/:          # Quick Comment (select multiple lines to batch comment)
Tab:               # Indent the current row (you can bulk indent with multiple rows selected)
Shift + Tab:       # Undo Indent (select multiple lines to indent in bulk)
Ctrl + F:          # Find
Ctrl + R: #          Replace
Hit Shift 2 times    in a row: # Global Lookup {You can find a string or something in the entire project, such as finding a function name string to see how to use this function before the}
tab mass change:     # menu bar Edit-> Convert indents (to spaces)
Shift + Z:         # Quick definition (view definitions of functions, classes, and so on), rewrite keymap (Ctrl + Shift + I)
7. Pycharm Installation Plugin (Eg:markdown) and third party libraryInstalling plugins in Pycharm: Settings-> Plugins-> Browse repositories (middle of three buttons below)-> search ' markdown support '-> install in Pych Install third party library in arm: Set-> Project interpreter-> Click on the top right corner of the + number lookup-> Select Install Package 8. Git configurationYou need to install Git version control-> git locally, and after you configure GIT and other versioning systems, you can easily diff view the different files 9. Import Export Current configurationFile>export Settings/import Settings

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.