Ways to Pycharm personalization using Python development tools

Source: Internet
Author: User
Python Development tools Pycharm personalization, including setting the default Pycharm parser, setting the Indent to tab, setting the IDE skin theme, etc., please refer to the use of it

1. Set the default Pycharm parser:

The operation is as follows:

Python–>preferences–>project Interpreter–>python Interpreter Click on the "+" sign to select the system-installed Python.

Then go back to Project interpreter and select the interpreter you just added.


2. Set the Indent Character to tab tab "tab"

File--Default Settings, Code Style

"Use tab character"
Python---Tick "use tab character"
Other language codes set up similarly

3. Set the IDE skin theme

Select "Alloy.idea Theme", Theme, Appearance, Settings, File--

4. Show "line number" and "White space character"

Editor->general, Settings, File---appearance
--tick "show line Numbers", "Show Whitespaces", "Show method Separators"

5. Set the editor color and font theme

Colors & Fonts, Settings, Editor, File-----select "Darcula"
Description: First select "Darcula", and then "Save as" a copy, named "Qianyunlai.com", because the default theme is "read-only", some font size color can not be modified, copy one of the rear can be modified!

Modify Font Size
"14", Settings, Colors & Fonts, Editor, File,

Add: Modify the interface of the entire theme

Darcula replaced with IntelliJ.

The final interface is as follows:

6. Remove default Folding

Settings, Editor, Code folding, File-----Collapse by default

7. "Code AutoComplete" time delay setting

Code completion, Editor, File, Settings
-Auto code completion in (MS): 0
Autopopup in (ms): 500

8. Modify the IDE shortcut key scheme

Keymap, Settings, File--
The system comes with several shortcut key schemes, such as "Defaul" in the drop-down box, "Visual Studio", which is useful when looking for bugs, "NetBeans 6.5", "Default for GNOME" and so on,
Because the eclipse scheme is more popular, the individual uses more, and eventually "Eclipse" is selected.

There are a couple of common shortcuts that are not the same as eclipse, and in order to be able to modify it, you have to copy the Eclipse solution first:

(1). Code hint function, the default is "Ctrl + Space", now instead of eclipse, namely "alt+/"

Main menu, code, completion, Basic, set to "alt+/"
Main menu, code-completion, Smarttype, set to "alt+shift+/"
But "alt+/" by default is also
Main menu, code---completion, Basic---Cyclic Expand Word occupies, first delete it again (right click Delete)!

(2). Close the current document, the default is "Ctrl+f4", now instead of eclipse, namely "Ctrl+w"

Main menu, window, active Tool window, Close active Tab, set to "CTRL+F4";
Main menu, Window, Editor, and Close, set to "ctrl+w";

Add: Show line number (is in editor--general--show lines numbers)

Mouse wheel Control Font size

PyCharm3.0 default shortcut keys (translated)

Pycharm Default Keymap

1. Editor (Editing)

Ctrl + Space Basic code completion (classes, methods, properties)
Ctrl + Alt + Space quickly import any class
Ctrl + Shift + Enter statement completion
Ctrl + P parameter information (call parameters in method)

Ctrl + Q Quick View Document

F1 External Documents

Shift + F1 External document, go to Web document home page

Ctrl + Shift + Z---Redo Redo

Ctrl + hover/Click left mouse button introduction/Enter code Definition
Ctrl + F1 Displays error descriptions or warning messages
Alt + Insert to generate code automatically
Ctrl + O Re-method
Ctrl + Alt + T selected
Ctrl +/Line comment/Cancel line comment
Ctrl + Shift +/Block Comment
Ctrl + W Select the added code block
Ctrl + Shift + W back to Previous state
Ctrl + Shift +/[SELECT code block end, start
Alt + Enter Quick fix
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimize import
Ctrl + Alt + I Auto Indent
Tab/shift + Tab indent, not indent forward
Ctrl+x/shift+delete clipping the current line or selected code block to the Clipboard
Ctrl+c/ctrl+insert Copy the current line or selected code block to the Clipboard
Ctrl+v/shift+insert pasting from the Clipboard
Ctrl + Shift + V paste from the nearest buffer
Ctrl + D to copy the selected range or row
Ctrl + Y Deletes the selected row
Ctrl + Shift + J Add smart Line
Ctrl + Enter Smart wire cut
Shift + Enter Another line
Ctrl + Shift + U toggle between selected areas or blocks of code
Ctrl + DELETE Delete to character end
Ctrl + Backspace Delete to character start
Ctrl + numpad+/-Expand/collapse code blocks (current position: functions, comments, etc.)
Ctrl + SHIFT + numpad+/-expand/Collapse All code blocks
Ctrl + F4 Close the Running tab
2. Find/replace (search/replace)
F3 Next
Shift + F3 Previous
Ctrl + R Replacement
Ctrl + SHIFT + F or 2 strokes Shift Global Lookup {You can find a string in the entire project, such as looking up a function name string to see how the function was used before}
Ctrl + Shift + R global substitution
3. Operation (Running)
Alt + Shift + F10 run mode configuration
Alt + Shift + F9 Debug mode configuration
Shift + F10 Run
Shift + F9 Debugging
Ctrl + Shift + F10 Run editor configuration
Ctrl + Alt + R run manage.py task
4. Commissioning (Debugging)
F8 Skip
F7 Enter
Shift + F8 Exit
ALT + F9 Running cursors
Alt + F8 Validation expression
Ctrl + Alt + F8 Quick Validation expression
F9 Recovery Program
Ctrl + F8 Breakpoint switch
Ctrl + Shift + F8 View breakpoints
5. Navigation (Navigation)
Ctrl + N jump to Class
Ctrl + Shift + N jump to symbol

Alt + Right/left Jump to the next, previous Edit tab (code file)

Alt + Up/down Jump to Previous, next method

F12 back to the previous tool window
ESC returns to the edit window from the tool window
Shift + ESC To hide a running, recently run window
Ctrl + Shift + F4 Close the active tab
Ctrl + G View current line numbers, character symbols
Ctrl + E Current file popup, open list of most recently used files
Ctrl+alt+left/right Back and forward

Ctrl+shift+backspace navigating to the most recently edited area {almost the last edited position}

Alt + F1 Find current file or identity
Ctrl+b/ctrl+click Jump to Declaration
Ctrl + Alt + B jump to implementation
Ctrl + Shift + I view quick definitions
Ctrl + Shift + b jump to type declaration

Ctrl + U Jumps to Parent method, parent class

Ctrl +/[Jump to code block end, start

Ctrl + F12 Popup file structure
Ctrl + H Type hierarchy
Ctrl + Shift + H method hierarchy
Ctrl + Alt + H Call Hierarchy
F2/shift + F2 Next, previous highlighted error
F4/ctrl + Enter edit resource, view resource
ALT + Home Display navigation bar F11 bookmark switch
Ctrl + Shift + F11 bookmark Mnemonic switch
Ctrl + #[0-9] Jump to an identified bookmark
Shift + F11 Display bookmarks
6. Search related (Usage search)
Alt + F7/ctrl + F7 file query usage
Ctrl + Shift + F7 file usage highlighting
Ctrl + Alt + F7 display usage
7. Reconstruction (refactoring)
F5 copy F6 cut
ALT + DELETE Safe Delete
Shift + F6 Rename
Ctrl + F6 Change signature
Ctrl + Alt + N Inline
Ctrl + Alt + M extraction method
Ctrl + Alt + V Extract Properties
Ctrl + Alt + F extract Fields
Ctrl + Alt + C Extract Constants
Ctrl + Alt + p extract Parameters
8. Control Vcs/local History
Ctrl + K Submit Project
Ctrl + T Update project
Alt + Shift + C to see Recent changes
Alt + backquote (') VCs quick eject
9. Template (Live Templates)
Ctrl + Alt + J Current row using template
Ctrl +j Insert Template
10. Basic (General)
ALT + #[0-9] Open the appropriate tool window
Ctrl + Alt + y sync
Ctrl + Shift + F12 maximize edit switch
Alt + Shift + F add to Favorite
Alt + Shift + I check the current file according to the configuration
Ctrl + backquote (') Quick switch current plan
Ctrl + Alt + S Open Settings page
Ctrl + Shift + A Find all the actions in the editor

Ctrl + TAB to switch between windows

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.