Getting to Know IntelliJ IDEA
Getting to Know IntelliJ IDEA
Level up your IntelliJ IDEA knowledge so that you can focus on doing what you do best.
About the Book
We’re frequently taught to use a text editor when we’re learning to write code so that we understand the fundamentals. However, if we treat our IDE as a text editor, we are doing ourselves a disservice. As professional developers, we no longer need to learn the fundamentals; we need to deliver working applications. We can use the features of an IDE to help us with this.
IntelliJ IDEA is an extremely fully-featured IDE that can help professional developers with almost any task they need to perform, and this can be overwhelming to get to grips with. Getting to Know IntelliJ IDEA uses two approaches to help newcomers and experienced users alike:
- Tutorials that walk through writing code and developing applications that show when, why and how to use IntelliJ IDEA features to create working applications.
- A questions-and-answers approach that demonstrates which features can be used to solve the problems that professional developers face.
Seeing how to use IntelliJ IDEA from these different angles not only showcases the most useful features but also teaches multiple approaches for using these features. No matter which technologies you use or how you like to work, reading this book will help you find an approach that enables you to work comfortably and productively with IntelliJ IDEA.
Table of Contents
- Dedication
- About the authors
- Trisha Gee
- Helen Scott
- Getting the most from this book
- Who should read this book
- Signposts to look out for
- A note about versions
- A note about shortcuts
- Feedback
- Acknowledgements
- Technical reviewers
- Cover design
- Part I: Getting to Know IntelliJ IDEA
- 1. What is IntelliJ IDEA?
- 1.1. What is IntelliJ IDEA?
- 1.2. Who makes it?
- 1.3. Community Edition versus Ultimate
- 2. The IntelliJ IDEA guiding principles
- 2.1. Always Green
- 2.2. Keyboard First
- 2.3. In the Flow
- 3. Installing IntelliJ IDEA
- 4. IntelliJ IDEA out of the box
- 4.1. Welcome screen
- 4.2. Tip of the day
- 4.3. New feature notifications
- 4.4. Balloon notifications
- 4.5. Tool window buttons
- 4.6. Tool windows
- 4.7. Navigation Bar
- 4.8. Editor tabs
- 4.9. Status bar
- 4.10. Breadcrumbs
- 4.11. Editor
- 4.12. After upgrading
- 5. Where to look
- 5.1. In the editor
- 5.2. Gutter icons
- 5.3. Right scrollbar
- 5.4. Status Bar
- 5.5. Tool windows
- 5.6. Dialogs
- 5.7. Seeing or changing your settings
- 5.8. Finding your JDK
- 6. How IntelliJ IDEA sees your project
- 6.1. IntelliJ IDEA’s view of your project
- 6.2. IntelliJ IDEA’s internal map
- 6.3. Finding your code
- 6.4. Projects and workspaces
- 6.5. Establishing Version Control status
- 6.6. IntelliJ IDEA Ultimate Framework support
- 6.7. Plugins and your project
- 7. Where to get help
- 7.1. IntelliJ IDEA’s YouTube channel
- 7.2. IntelliJ IDEA’s online help
- 7.3. IntelliJ IDEA’s Feature Trainer
- 7.4. IntelliJ IDEA’s Guide
- 7.5. IntelliJ IDEA’s Blog
- 7.6. IntelliJ IDEA Community Forums
- 7.7. IntelliJ IDEA YouTrack
- 7.8. Stack Overflow
- 1. What is IntelliJ IDEA?
- Part II: Working with code
- 8. Writing code
- 9. Creating code quickly
- 9.1. Suggestions while you type
- 9.2. Type-sensitive suggestions
- 9.3. Just keep typing
- 9.4. Complete your code’s structure
- 9.5. Generate common code structures
- 9.6. Create a new…
- 9.7. Generate from missing code
- 10. Fixing and changing your code
- 10.1. See suggestions in the editor
- 10.2. Fix errors
- 10.3. Improve code
- 10.4. Change code
- 10.5. Check spelling
- 11. Activating your muscle memory with Keyboard Shortcuts
- 11.1. Focus on the editor
- 11.2. "Get me out of here"
- 11.3. Extra-fast copy/cut line
- 11.4. Duplicate line or selection
- 11.5. Delete line
- 11.6. Format code
- 12. Moving through your code
- 12.1. Finding anything
- 12.2. Viewing and opening recent files
- 12.3. Viewing and moving to recent locations
- 12.4. Going to a specific line
- 12.5. Moving backward and forward through code
- 12.6. Moving between your code and its test
- 12.7. Finding where this code is used
- 12.8. Seeing details of the code you are calling
- 13. Understanding code
- 13.1. Hints in the editor
- 13.2. API and documentation at a glance
- 13.3. Readable code documentation
- 13.4. Hide distracting code
- 13.5. Code use and data values
- 13.6. Syntax highlighting for embedded code
- 13.7. Understanding the flow of your code
- 13.8. Understanding changes over time
- 13.9. Getting insight into the code’s intended behaviour
- Part III: Developing applications
- 14. Opening a project
- 14.1. How IntelliJ IDEA uses your project’s build tool
- 14.2. Cloning a project from GitHub
- 15. Running your code
- 15.1. Re-running an application
- 15.2. Terminating a process
- 16. Debugging your code
- 17. Testing your code
- 17.1. A quick discussion of automated testing
- 18. Combining testing and debugging
- 19. Managing dependencies
- 19.1. Why do you need dependency management?
- 19.2. Seeing your project’s dependencies
- 19.3. Adding dependencies
- 20. Working with a build tool
- 20.1. A view of your project’s build tool
- 20.2. Running the build
- 20.3. Finding your build configuration
- 21. Keeping track of code changes
- 21.1. Enabling Version Control (Git)
- 21.2. Committing changes
- 21.3. The Git tool window
- 21.4. Seeing code changes
- 21.5. What to look for when you’re ready to commit your code
- 21.6. Working with remote version control
- 21.7. Your last line of defence
- 14. Opening a project
- Part IV: IntelliJ IDEA Essentials
- 22. Fixing errors and warnings
- 22.1. FAQ: Recognising and managing warnings and errors
- 23. Refactoring your code
- 23.1. FAQ: Changing your code without breaking it
- 24. Formatting and arranging your code
- 24.1. FAQ: When and how to format and arrange your code
- 25. Benefiting from multiple clipboards
- 25.1. FAQ: Copying and pasting in IntelliJ IDEA
- 26. Using Run Configurations effectively
- 26.1. What is a Run Configuration?
- 26.2. Editing configurations
- 26.3. FAQ: Running applications and tests
- 26.4. Run Anything
- 27. Diving into debugging
- 27.1. FAQ: The importance of breakpoints
- 27.2. FAQ: Seeing program state
- 27.3. Debugging a remote application
- 27.4. Debugging performance problems
- 28. Expanding on testing
- 28.1. FAQ: Test coverage
- 28.2. FAQ: Getting comfortable with automated tests
- 29. Building on build tools
- 29.1. The Maven or Gradle tool window
- 29.2. FAQ: Maven, Gradle and IntelliJ IDEA
- 30. Doing more with dependencies
- 30.1. IntelliJ IDEA’s Dependencies tool window
- 30.2. FAQ: Working with dependencies
- 31. Making version control work for you
- 31.1. Why work with a Version Control System (VCS)
- 31.2. The Commit tool window
- 31.3. FAQ: Committing changes
- 31.4. The Git tool window
- 31.5. FAQ: Working with branches
- 31.6. FAQ: Git for more experienced users
- 32. Viewing and applying local history
- 32.1. FAQ: Using Local History to get back to a known working state
- 33. Running commands in the terminal
- 33.1. FAQ: Working with the built-in terminal
- 34. Managing work TODO
- 34.1. FAQ: Viewing and managing your project’s TODOs
- 35. Pairing with code with me
- 35.1. Using Code With Me
- 35.2. FAQ: Tips for Code With Me
- 36. Working with plugins
- 36.1. FAQ: How to view and change the plugins you work with
- 37. Understanding Java in IntelliJ IDEA
- 37.1. FAQ: IntelliJ IDEA’s Java settings
- 37.2. FAQ: Troubleshooting JVM errors
- 38. Deciphering the Project Structure dialog
- 38.1. FAQ: JVM and Java Settings
- 38.2. FAQs: Project Structure
- 39. Looking in your .idea folder
- 39.1. FAQ: Understanding what’s in your .idea folder
- 40. Changing IntelliJ IDEA settings
- 40.1. FAQ: Tinkering with your project settings
- 41. What to do if things go wrong
- 41.1. Where to look in the IDE
- 41.2. Writing and running
- 41.3. Problems with your project
- 41.4. Problems with the IDE
- 41.5. Problems caused by plugins
- 41.6. What to check and change
- Appendix A: Tuning your IDE
- A.1. Startup Tips
- A.2. Navigation Bar
- A.3. Editor Tabs
- A.4. Breadcrumbs
- A.5. Tool windows and their buttons
- A.6. Inlay Hints
- Appendix B: Top Tips that did not make it into the book
- B.1. Multiple carets
- B.2. Multi-line Strings
- B.3. Find in Files
- B.4. Shortcut on dialogs
- B.5. Searchable dialogs and tool windows
- Appendix C: Top Keyboard Shortcuts
- 22. Fixing errors and warnings
Other books by these authors
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned$12,307,240writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Personal Finance
Jason AndersonThis textbook provides an in-depth analysis on personal finance that is both practical and straightforward in its approach. It has been written in such a way that the readers can gain knowledge without getting overwhelmed by the technical terms. Suitable for both beginners and advanced learners.
Getting to Know IntelliJ IDEA
Trisha Gee and Helen ScottIf we treat our IDE as a text editor, we are doing ourselves a disservice. Using a combination of tutorials and a questions-and-answers approach, Getting to Know IntelliJ IDEA will help you find ways to use IntelliJ IDEA that enable you to work comfortably and productively as a professional developer.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the most complete guide around introducing the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
Stats One
William FooteMachine Learning Q and AI
Sebastian Raschka, PhDHave you recently completed a machine learning or deep learning course and wondered what to learn next? With 30 questions and answers on key concepts in machine learning and AI, this book provides bite-sized bits of knowledge for your journey to becoming a machine learning expert.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Gradual Modularization for Ruby and Rails
Stephan HagemannGet yourself a new tool to manage your Rails application and your growing engineering organization! Prevent the ball-of-mud (and fix it!). Go for microservices or SOA if it makes sense not just because you don't have any other tool. Do all this through a low-overhead tool: packages. Enable better conversations to make practical changes today.
Top Bundles
- #1
Software Architecture
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #3
1500 QUIZ COMMENTATI (3 libri)
3 Books
Tre libri dei QUIZ MMG Commentati al prezzo di DUE! I QUIZ dei concorsi ufficiali di Medicina Generale relativi agli anni: 2000-2001-2003-2012-2013-2014-2015-2016-2017-2018-2019-2020-2021 +100 inediti Raccolti in unico bundle per aiutarvi nello studio e nella preparazione al concorso. All'interno di ogni libro i quiz sono stati suddivisi per... - #4
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #5
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #7
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #9
Development and Deployment of Multiplayer Online Games, Part ARCH. Architecture (Vol. I-III)
3 Books
What's the Big Idea? The idea behind this book is to summarize the body of knowledge that already exists on multiplayer games but is not available in one single place.And quite a fewof the issues discussed within this series (planned as three nine volumes ~300 pages each), while known in the industry, have not been published at all (except for... - #10
Modern C++ Collection
3 Books
Get All about Modern C++C++ Standard Library, including C++20Concurrency with Modern C++, including C++20C++20Each book has about 200 complete code examples. Updates are included. When I update one of the books, you immediately get the updated bundle. You can expect significant updates to each new C++ standard (C++23, C++26, .. ) and also...