Common shortcut keys and common settings in pycharm

1. Commonly used shortcut keys

  1. Undo and anti-undo: Ctrl + z, Ctrl + Shift + z
  2. Indent, not indent: Tab, Shift + tab
  3. Run: Shift + F10
  4. Batch comment, uncomment: Ctrl + /
  5. Quickly view the document: Ctrl + q
  6. When the cursor is in the middle of the code, how to enter to the next line: Shift + Enter; Shift + Enter to start a new line
  7. How to jump to the end of the previous line when the mouse is not at the beginning of the next line of code: Ctrl + backspace (backspace key)
  8. When one line of code is too long, how can we switch to the next line, but the format remains the same: Ctrl + Enter
  9. View the function details, hold down ctrl+left click and double click
  10. Alt+Enter automatically add package or module
  11. shift+O automatically suggest code completion
  12. Ctrl+t SVN update
  13. Ctrl+k SVN submit
  14. Ctrl+Shift+F advanced search; Ctrl+F search in the document
  15. Ctrl + Alt + I auto shrink
  16. Ctrl + Y delete the line where the current caret is located
  17. Ctrl + D Copy the current line or selected block
  18. Ctrl + Shift + J merge lines
  19. Ctrl + Shift + V Paste from the nearest buffer
  20. Ctrl + Delete delete to the end of the character
  21. Ctrl + Backspace delete to the beginning of the character
  22. Ctrl + NumPad+/- expand or contract code block

Ctrl + Shift + NumPad+ expand all code blocks
Ctrl + Shift + NumPad- shrink all code blocks

2. Common settings

In Pycharm, the font size cannot be changed by Ctrl+wheel by default, you can set the font in file -> Setting ->Editor->Font

Code template added
Insert picture description here

#!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: ${USER}
@file: ${NAME}.py
@time: ${YEAR}/${MONTH}/${DAY}
@desc:
"""

Guess you like

Origin blog.csdn.net/weixin_46649052/article/details/112688819