Pycharm commonly used shortcuts

Keyboard Shortcuts

  • Undo and anti-undo: Ctrl + z, Ctrl + Shift + z
  • Indent, not indent: Tab, Shift + tab
  • Run: Alt + Shift + F10
  • Check parameter information Ctrl + p
  • Quick view the document: Ctrl + q
  • Quickly jump to the function definition: Ctrl + click / b
  • Delete the word before the current cursor location: Ctrl + backspace (backspace)
  • Expand / Collapse code blocks: Ctrl + Shift ++ / -
  • Pop recently edited files: Ctrl + E
  • Rename: Shift + F6

The cursor jumps

  • The first line: Ctrl + Home last line: Ctrl + End
  • First row: Home end of the line: End
  • The beginning of the next paragraph: Under Alt + ↑ opening paragraph: Alt + ↓
  • Return the beginning of the current word: Ctrl + end ←: Ctrl + →
  • When the cursor is in the middle of the code, how the transport to the next line: Shift + Enter
  • When the line of code is too long, how do we switch to the next line, but the cursor is unchanged: Ctrl + Enter
  • Jump to the first few lines: Ctrl + G
  • Go to the nearest location code editor: Ctrl + Shift + Backspace
  • Skip to affirm (such as a jump to the current function declaration places): Ctrl + B or Ctrl + Click
  • In contrast to the above, to jump to location: Ctrl + Alt + B
  • Or a jump to the next method: Alt + Up / Down
  • Jump to the start or end of the block of code: Ctrl +] / [
  • Jump to a wrong place on a highlight or lower: F2 / Shift + F2

Select the code

  • Shift + cursor jumps

delete

  • To delete the character to the end of Ctrl + Delete
  • To delete the character to the beginning Ctrl + Backspace
  • Delete selected lines Ctrl + Y
  • Delete end of the line Ctrl + shift + J line breaks

Note

  • Line comments: Ctrl + / (canceled line comments)
  • Block Note: Ctrl + shift + /

Find and Replace

  • Find: Ctrl + F
  • Alternatively: Ctrl + R
  • Next: F3
  • Previous: Shift + F3

copy

  • Copy the current line or selected block: Ctrl + D

Guess you like

Origin www.cnblogs.com/benjieqiang/p/11404065.html