Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 916 Bytes

ide.md

File metadata and controls

33 lines (26 loc) · 916 Bytes

Tips on IDEs (Integrated Development Environment)

IntelliJ IDEA

Open a file in a new window: CTRL+double-click

Compare two files:

  • select two files
  • press CTRL+D

Find in path: CTRL+MAJ+F

Search everywhere: SHIFT SHIFT

Vim

  • dd : delete current line
  • dd, p : move current line
  • yy, p : duplicate current line
  • i : switch to insert mode (before cursor)
  • Esc : exit insert mode
  • u : undo
  • ~ : toggle case
  • /pattern : search for pattern
  • ?pattern : search backward for pattern
  • n : repeat search in same direction
  • N : repeat search in opposite direction
  • :%s/old/new/g : replace all old with new throughout file
  • :%s/old/new/gc : replace all old with new throughout file with confirmations
  • :w : save
  • :q : quit (fails if there are unsaved changes)
  • :q! : quit and throw away unsaved changes
  • :wq : save and quit