Pycharm shortcut keys and general applications

Source: Internet
Author: User

http://blog.csdn.net/pipisorry/article/details/39909057

This blog has been in sync with the update.

Content includes: Pycharm Learning tips Learning tips, PyCharm3.0 default shortcuts (translated), Pycharm common settings, pycharm environment and path configuration, Pycharm practical extension: Pycharm in the purge compiled. PYc Intermediate file, Python2 to Python3 fastest way
[Pycharm version control and database management] [those useful features in Pycharm]
Pycharm Learning Skills Learning Tips

/pythoncharm/help/tip of the day:
A special variant of the Code completion feature invoked by pressing Ctrl+space twice allows the name of a NY class No matter if it is imported in the current file or not. If The class is not a imported yet, the import statement is generated automatically.
Can quickly find all places where a particular class, method or variable are used in the whole project by positioning T He caret at the symbol's name or at it usage in code and pressing ALT+SHIFT+F7 (Find Usages in the popup menu).
To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and press F12. You can also click the mouse in usages with the Ctrl key pressed to the declarations.
You can easily rename your local variables with automatic correction of all places where they is used.
To try it, place the caret at the variable you want to rename, and press Shift+f6 (Refactor | Rename). Type the new name in the popup window that appears, or select one of the suggested names, and press Enter.

...

Switch
Use Alt+up and Alt+down keys to quickly move between methods in the editor.
Use Ctrl+shift+f7 (Edit | Find | Highlight Usages in File) to quickly Highlight Usages of some variable in the current file.
Choose
You can easily make column selection by dragging your mouse pointer while keeping the ALT key pressed.
Complement the whole
Working in the interactive consoles, you don ' t need to memorise the command line syntax or available functions. Instead, you can use the familiar code completion ctrl+space. Moreover, from within the lookup list, you can press Ctrl+q to view the item ' s documentation.
Show
Use F3 and SHIFT+F3 keys to navigate through highlighted usages.
Press Escape to remove highlighting.
History
Ctrl+shift+backspace (Navigate | Last Edit location) brings the last place where you made changes in the code.
Pressing ctrl+shift+backspace a few times moves you deeper to your changes history.
Ctrl+e (View | Recent files) brings a popup list of the recently visited Files. Choose the desired file and press Enter to open it.
Use Alt+shift+c to quickly review your recent changes to the project.
Shear Plate
Use the Ctrl+shift+v shortcut to choose and Insert recent clipboard contents into the text.
If Nothing was selected in the editor, and you press CTRL + C, then the whole line at caret was copied to the Clipboard.
Run/debug
By pressing ALT+SHIFT+F10 your can access the Run/debug dropdown on the main toolbar, without the need to use your mouse.

Referencecard.pdf shortcut keys can be found in the Pycharm installation directory/opt/pycharm-3.4.1/help directory The English version of the instructions or open Pycharm > Help > Default keymap ref

PyCharm3.0 default shortcut keys (translated)

Pycharm Default Keymap

1. Edit (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 jumps to the 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 the 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

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.