Python debugging tool ---- pycharm shortcut key and some common settings, python ---- pycharm

Source: Internet
Author: User
Tags svn update

Python debugging tool ---- pycharm shortcut key and some common settings, python ---- pycharm

Pycharm shortcut keys and some common settings. For more information, see.


Alt + Enter automatically add package
Ctrl + t SVN update
Ctrl + k SVN submit
Ctrl +/comment (uncomment) the row selected
Ctrl + Shift + F Advanced Search
Ctrl + Enter completion
Shift + Enter start new line
TAB Shift + TAB indent/unindent selected row
Ctrl + Alt + I automatic contraction
Ctrl + Y Delete the row where the current Delimiter is located
Ctrl + D copy the current row or the selected block
Ctrl + Shift + J merge rows
Ctrl + Shift + V paste from the nearest cache area
Ctrl + Delete to the end of a character
Ctrl + Backspace Delete to start of character
Ctrl + NumPad +/-expand or contract the code block
Ctrl + Shift + NumPad + show all code blocks

Ctrl + Shift + NumPad-shrink all code blocks


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

In the PyCharm/opt/pycharm-3.4.1/helpdirectory you can find the referencecard.pdf shortcut English description

PyCharm Default Keymap

PyCharm3.0 default shortcut)

1. Edit)
Ctrl + Space Basic Code Completion (class, method, attribute)
Ctrl + Alt + Space Quick import of any class
Ctrl + Shift + Enter
Ctrl + P parameter information (call parameters in methods)
Ctrl + Q quick document viewing
Shift + F1 external document
Ctrl + mouse Introduction
Ctrl + F1 Display Error description or warning information
Alt + Insert automatically generated code
Ctrl + O retry Method
Ctrl + Alt + T select
Ctrl +/line comment
Ctrl + Shift +/block comment
Ctrl + W select the added code block
Ctrl + Shift + W back to the previous status
Ctrl + Shift +]/[end and start of the selected code block
Alt + Enter quick correction
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimized Import
Ctrl + Alt + I auto indent
Tab/Shift + Tab indent, do not indent the current row
Ctrl + X/Shift + Delete cut the current row or selected code block to the clipboard
Ctrl + C/Ctrl + Insert copy the current row or selected code block to the clipboard
Ctrl + V/Shift + Insert paste from clipboard
Ctrl + Shift + V paste from the nearest Buffer
Ctrl + D copy the selected region or row
Ctrl + Y Delete selected row
Ctrl + Shift + J Add a smart line
Ctrl + Enter smart Wire Cutting
Shift + Enter start another line
Ctrl + Shift + U Switch between the selected region or code block
Ctrl + Delete: Delete to end of character
Ctrl + Backspace Delete to start character
Ctrl + Numpad +/-expand and collapse the code block
Ctrl + Numpad + expand all
Ctrl + Numpad-hide all
Ctrl + F4 close the running tab

2. Search/Replace)
Next to F3
Shift + F3 previous
Ctrl + R replace
Ctrl + Shift + F Global Search
Ctrl + Shift + R global replacement

3. Running)
Alt + Shift + F10 running mode configuration
Alt + Shift + F9 debug mode configuration
Shift + F10 run
Shift + F9 debugging
Ctrl + Shift + F10 run editor configuration
Ctrl + Alt + R run the manage. py task

4. debug (Debugging)
F8 skip
Enter F7
Shift + F8 exit
Alt + F9 run cursor
Alt + F8 verification expression
Ctrl + Alt + F8 quick expression Verification
F9 Recovery Program
Ctrl + F8 breakpoint Switch
Ctrl + Shift + F8 view breakpoints

5. Navigation)
Ctrl + N jump to class
Ctrl + Shift + N jump to the symbol
Alt + Right/Left jump to the next and previous edited Tab
F12 back to the previous tool window
Esc return to the editing window from the tool window
Shift + Esc hide running and recent running Windows
Ctrl + Shift + F4 close the active running tab
Ctrl + G to view the current row number and symbol
Ctrl + E pop-up of the current file
Ctrl + Alt + Left/Right move backward and forward
Ctrl + Shift + Backspace navigate to the recently edited Area
Alt + F1 find the current file or ID
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 jump to parent method and parent class
Alt + Up/Down jump to the previous and next Methods
Ctrl +]/[jump to the end and start of the code block
Ctrl + F12 pop-up file structure
Ctrl + H type hierarchy
Ctrl + Shift + H method hierarchy
Ctrl + Alt + H call hierarchy
F2/Shift + F2 next and previous highlighted errors
F4/Ctrl + Enter edit resources and view resources
Alt + Home display navigation bar F11 bookmarks
Ctrl + Shift + F11 bookmarks
Ctrl + # [0-9] Jump to the tag bookmarks
Shift + F11 show bookmarks

6. Usage Search)
Alt + F7/Ctrl + F7 file query usage
Ctrl + Shift + F7 File Usage highlighted
Ctrl + Alt + F7 display usage

7. Refactoring)
F5 copy F6 cut
Alt + Delete secure deletion
Shift + F6 rename
Ctrl + F6 change Signature
Ctrl + Alt + N inline
Ctrl + Alt + M Extraction Method
Ctrl + Alt + V extract attributes
Ctrl + Alt + F field Extraction
Ctrl + Alt + C extract constant
Ctrl + Alt + P extract Parameters

8. Control VCS/Local History
Ctrl + K submit project
Ctrl + T update project
Alt + Shift + C View recent changes
Alt + BackQuote (') VCS quick pop-up

9. Templates (Live Templates)
Ctrl + Alt + J use template for the current row
Ctrl + J insert Template

10. General)
Alt + # [0-9] Open the corresponding tool window
Ctrl + Alt + Y Synchronization
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 (') quickly switch the current plan
Ctrl + Alt + S open the settings page
Ctrl + Shift + A search for all the actions in the editor
Ctrl + Tab switch between windows

Some common settings:

1. pycharm is automatically saved by default. If you press ctrl + s, you can perform the following settings:
1. file-> Setting-> General-> Synchronization-> Save files on frame deactivation and Save files automatically if application is idle for... sec check box removed
2. file-> Setting-> Editor Tabs-> Mark modified tabs with asterisk.
2. Alt + Enter: automatically add a package

3. for common shortcut keys, you can set them to the same as visual studio (eclipse:
File-> Setting-> Keymap-> Keymaps-> vuisual studio-> Apply

4. By default, Pycharm cannot use Ctrl + scroll wheel to change the font size. You can set it in file> Setting> Editor> Mouse.

5. To set the font of Pycharm, select a style in file> Setting> Editor and save the style before you can change it.

6. Searching theme in setting can change the theme, and the color of all theme changes.

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.