Article Directory
1. Commonly used shortcut keys
- Undo and anti-undo: Ctrl + z, Ctrl + Shift + z
- Indent, not indent: Tab, Shift + tab
- Run: Shift + F10
- Batch comment, uncomment: Ctrl + /
- Quickly view the document: Ctrl + q
- 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
- 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)
- When one line of code is too long, how can we switch to the next line, but the format remains the same: Ctrl + Enter
- View the function details, hold down ctrl+left click and double click
- Alt+Enter automatically add package or module
- shift+O automatically suggest code completion
- Ctrl+t SVN update
- Ctrl+k SVN submit
- Ctrl+Shift+F advanced search; Ctrl+F search in the document
- Ctrl + Alt + I auto shrink
- Ctrl + Y delete the line where the current caret is located
- Ctrl + D Copy the current line or selected block
- Ctrl + Shift + J merge lines
- Ctrl + Shift + V Paste from the nearest buffer
- Ctrl + Delete delete to the end of the character
- Ctrl + Backspace delete to the beginning of the character
- 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
#!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: ${USER}
@file: ${NAME}.py
@time: ${YEAR}/${MONTH}/${DAY}
@desc:
"""