Giter Site home page Giter Site logo

intellij-cheatsheet's Introduction

IntelliJ IDEA cheatsheet

Selection

Ctrl + Shift + Right - selects whole words
Ctrl + W - extends selection to the next code block
Ctrl + Shift + W - shrinks selection
Ctrl + A - selects whole file
Shift + Down - selects several lines

Comment lines

Ctrl + / - comments / uncomments line

Delete lines

Ctrl + Y - deletes line
Ctrl + Z - restores deleted line

Duplicate lines

Ctrl + D - duplicates line

Move lines

Alt + Shift + Up/Down - moves line up/down
Ctrl + Shift + Up/Down - moves whole statement up/down

Collapse

Ctrl + NumPad -/+ - Collapses/expands a piece of code
Ctrl + Shift + NumPad -/+ - Collapses/expands all regions in a file

Multiple selections

Alt + J - selects the symbol at the caret, press it again to to select next occurence
Alt + Shift + J - deselects the last occurence
Ctrl + Alt + Shift + J - selects all occurences in a file; now we can replace some text

Code completion

Ctrl + Space - activates basic completion
Ctrl + Shift + Space - shows matching suggestions; confirm your choice by pressing Enter
Ctrl + Shift + Enter - completes code for statements

Refactoring

Shift + F6 - rename refactoring
Ctrl + Alt + V - extracts to a variable or field
Ctrl + Alt + M - extracts some lines of code into a new method
Ctrl + Alt + C - extracts the selected expression to a constant
Ctrl + Alt + P - extract the selected expression into a parameter

Code formatting

Ctrl + Alt + L - automatically reformats code

Info

Ctrl + P - shows a method signature
Ctrl + Q - shows quick popup with documentation for the symbol; Escape closes the popup
Ctrl + Shift + I - shows the definition od the symbol

Editor coding assistance

F2 - goes to the next highlighted error in the file
Ctrl + F1 - show the error description
F4 - jumps to the source of class
Ctrl + B - jumps to the declaration of a class or interface
Ctrl + F12 - shows the file structure

Navigation

Ctrl + Shift + T - Navigate -> Test
Ctrl + Alt + B - Navigate -> Implementation

Other

Alt + Ins - Create New ...
Ctrl + K - Commit Shoft + Ctrl + A - Find any action ...

intellij-cheatsheet's People

Contributors

kdlug avatar develking avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.