Table of Contents
IntelliJ
Commands and Content on IntelliJ Cheat Sheet
Free Tips and Tricks of using IntelliJ Cheat Sheet for commands
Conclusion
Home Java javaTutorial IntelliJ Cheat Sheet

IntelliJ Cheat Sheet

Aug 30, 2024 pm 03:15 PM
java

IntelliJ cheat sheet support various programming languages like Java, CloudSlang, Clojure, Dart, Erlang, Go, Groovy, JavaScript, PHP, Ruby or JRuby, TypeScript, HTML, Perl, Haxe, Rust, Scala, XML/JSL, Kotlin, Haskell, Lua, Julia, and Python. It supports the platforms and technologies like Android, Junit, Maven, TestNG, Django, EJB, Grails, JSF, JSP, Node.js, Play, struts, web services, Hibernate, and ruby on rails, etc.

ADVERTISEMENT Popular Course in this category INTELLIJ IDEA - Learning Path | 4 Course Series | 6 Mock Tests

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

IntelliJ

  • IntelliJ is also referred to as IntelliJ IDEA, and it is a Java integrated development environment (IDE). It is used for creating or developing software. JetBrains develop it. It is written in Java. It was initially released in the year 2001, but since 2010, it is also one of the top tools used for Java programming. It supports the operating systems that are windows, Mac OS, Linux.
  • IntelliJ IDEA has a lot of features like completion of code after analyzing the context, code navigation that allows shifting to class or directly declaration of code, code refactoring, and options to fix inconsistencies. It also provides integration with other tools like Gradle, grunt, etc., and version controls like GIT, SVN, etc. and databases like MSSQL server, MySQL and Oracle.

Commands and Content on IntelliJ Cheat Sheet

The IntelliJ cheat sheet has an extensive library, scalable, extendable, and interactive and contains many inbuilt methods to compute common operations. There are different commands available to perform basic selection, code completion and refactoring commands.

Below is the IntelliJ Cheat sheet for commands mentioned which perform different kinds of operations:

Command Description
Ctrl + / This command is used to Comment Line
Ctrl + Shift + / It is used to Comment Block
Ctrl + D It is to Duplicate Line
Alt + Shift + Down/Up To Move line
Ctrl + Alt + Shift + Down/Up To Move the Whole statement
Ctrl + – It is to Collapse block
Ctrl + + It is used to Expand block
Ctrl + Shift + +/- When we need to Collapse/ Expand the whole file
Ctrl + A Need to Select Whole life
Ctrl + W When to Extend the selection to the next block
Ctrl + Shift + W It is used to Shrinks selection
Alt + J When to Select next occurrence
Alt + Shift + J When to Deselect next occurrence
Ctrl + shift + F7 Helps in Highlight all usages in file
Ctrl +Alt + Shift + J It is to Select all occurrence in the file
Ctrl + Space Suggest
Ctrl + Space X2 Getting the Deeper level suggestion
Ctrl + shift + space It helps in getting the List of matching suggestion
Ctrl + shift + space x2 A suggestion in return statement
Ctrl + Shift + enter Complete statement
Shift + F6 Rename
Ctrl + Alt + V Extract variable or field
Ctrl + Alt + M Encapsulate code in a new method
Ctrl + Alt + C Extract selected expression in a context
Ctrl + Alt + P Extract selected expression in a parameter
Ctrl + Alt + T Surround selected code

There are some other commands available on code assistance and navigation; please find below:

Command DESCRIPTION
Ctrl + P  It is used to see the method signature
Ctrl + J It is used to insert a live template
Ctrl + Q It is to see the method documentation
Ctrl + Alt + L Used to Reformat code
Ctrl + shift + i It is to see the definition
F2 It helps in finding the next highlighted error in a file
Ctrl + F1 It is used to see the description error
Alt + Enter It provides a suggested solution
Ctrl + N When it is required to search class
Ctrl + Shift +N It is used to search file
F4 It helps in Jump to source
Ctrl + B Jump to declaration
Ctrl + Alt + B Jump to implementation
Ctrl + F12 It is used to see a file structure

Free Tips and Tricks of using IntelliJ Cheat Sheet for commands

  1. IntelliJ IDEA comes with two very useful preconfigured quick-lists that are as below.
  • Refactor This (Ctrl + Alt + Shift + T on Windows/Linux and Ctrl + T on Mac OS)
  • VCS Operations (Alt+` on Windows/Linux and Ctrl + V on Mac OS).
  1. With the help of the IntelliJ idea, resize of tool windows can be done with the command Ctrl + shift + arrows on windows/ Linux and shift + cmd + arrows on Mac OS.
  2. The following command can be used ‘Win + up’ on windows and ‘Ctrl + cmd + =’ on Mac OS to maximize the window.
  3. The following command can be used ‘Ctrl + Alt + J’ on Windows or Linux and Cmd + ‘ on Mac OS to move to the next project window.
  4. In IntelliJ, there are many keyboard settings. Smart keys can be used to toggle automatic insertion of pair brackets, quotes, and curly braces and enable camel humps. Smart keys can be enabled through Settings -> Editor -> general -> Smart keys.
  5. There is one important thing make sure that chosen keymap does not conflict with OS. The following are the Ubuntu commands:
  • Shade Window, assigned to Ctrl + Alt + S, clashes with Settings
  • Lock Screen, assigned to Ctrl + Alt + L, clashes with Reformat Code
  • Launch Terminal, assigned to Ctrl + Alt + T, clashes with Surround With
  • Switch to Workspace, assigned to Ctrl + Alt + Arrows, clashes with in-IDE navigation
  • Move Window, assigned to Alt + F7, clashes with Find Usages
  • Resize Window, assigned to Alt + F8, clashes with Evaluate Expression
  • Virtual Consoles, assigned to Ctrl + Alt + F12, clashes with Commit

Conclusion

The IntelliJ cheat sheet is getting popular among developers nowadays for working on javascript, and Json, and other Java programming or scripting languages. It is mostly simple, easy, and flexible with all the platforms. It helps in running, debugging, compiling, and testing the applications. It is used to deploy the application, analyze the application, view the structure and hierarchy of source code, module dependencies, and work with artefacts and use file watchers. This is mainly compatible with almost all the tools, framework, version control, and technologies, because of which it is the first choice nowadays to work with for any developer.

The above is the detailed content of IntelliJ Cheat Sheet. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Square Root in Java Square Root in Java Aug 30, 2024 pm 04:26 PM

Guide to Square Root in Java. Here we discuss how Square Root works in Java with example and its code implementation respectively.

Perfect Number in Java Perfect Number in Java Aug 30, 2024 pm 04:28 PM

Guide to Perfect Number in Java. Here we discuss the Definition, How to check Perfect number in Java?, examples with code implementation.

Random Number Generator in Java Random Number Generator in Java Aug 30, 2024 pm 04:27 PM

Guide to Random Number Generator in Java. Here we discuss Functions in Java with examples and two different Generators with ther examples.

Weka in Java Weka in Java Aug 30, 2024 pm 04:28 PM

Guide to Weka in Java. Here we discuss the Introduction, how to use weka java, the type of platform, and advantages with examples.

Smith Number in Java Smith Number in Java Aug 30, 2024 pm 04:28 PM

Guide to Smith Number in Java. Here we discuss the Definition, How to check smith number in Java? example with code implementation.

Java Spring Interview Questions Java Spring Interview Questions Aug 30, 2024 pm 04:29 PM

In this article, we have kept the most asked Java Spring Interview Questions with their detailed answers. So that you can crack the interview.

Break or return from Java 8 stream forEach? Break or return from Java 8 stream forEach? Feb 07, 2025 pm 12:09 PM

Java 8 introduces the Stream API, providing a powerful and expressive way to process data collections. However, a common question when using Stream is: How to break or return from a forEach operation? Traditional loops allow for early interruption or return, but Stream's forEach method does not directly support this method. This article will explain the reasons and explore alternative methods for implementing premature termination in Stream processing systems. Further reading: Java Stream API improvements Understand Stream forEach The forEach method is a terminal operation that performs one operation on each element in the Stream. Its design intention is

TimeStamp to Date in Java TimeStamp to Date in Java Aug 30, 2024 pm 04:28 PM

Guide to TimeStamp to Date in Java. Here we also discuss the introduction and how to convert timestamp to date in java along with examples.

See all articles