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

Tips and tricks designed to help you level up, whether you're just starting with IntelliJ IDEA or you've been a user for a while. Written with junior and senior developers in mind.

About the Authors

Trisha Gee
Trisha Gee

Trisha a Java Champion and the Lead Java Advocate at JetBrains. Trisha has developed Java applications for a range of industries of all sizes, including finance, manufacturing and non-profit. She has expertise in Java high performance systems and dabbles with Open Source development. Trisha values helping all developers level up their career and skills at every step of their journey.

Helen Scott
Helen Scott

Helen is passionate about all things technology and loves working with the development community to help them be awesome. Helen believes that content creation and communication are the best ways to engage with the community and help everyone learn together.

Helen has worked at numerous software companies and has experienced the highs and lows of the software development cycle at all stages. Helen loves to learn new tools and technologies and share that journey of exploration.

Helen has a Computer Science degree from The University of Sussex and a Diploma in Technical Communications from Sheffield Hallam University.

Table of Contents

  • Dedication
  • About the Authors
    • Helen Scott
    • Trisha Gee
    • Why We Wrote This Book
  • Getting the most from this book
    • Who should read this book
    • Signposts to Look Out For
    • A Note About Shortcuts
    • Feedback
  • Acknowledgements
    • Technical Reviewers
    • Cover Design
  • Part I: Getting to Know IntelliJ IDEA
    • Chapter 1. How Can IntelliJ IDEA Help You?
    • Chapter 2. The IntelliJ IDEA Mindset
      • 2.1. Always Green
      • 2.2. Keyboard First
      • 2.3. In the Flow
    • Chapter 3. Installing IntelliJ IDEA
    • Chapter 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. Dialogs
      • 4.13. After Upgrading
      • 4.14. Tuning Your IDE
    • Chapter 5. Where to Look
      • 5.1. In The Editor
      • 5.2. In Your Wider Project
    • Chapter 6. How IntelliJ IDEA Sees Your Project
      • 6.1. IntelliJ IDEA’s Internal Map
      • 6.2. What is an IntelliJ IDEA Project?
      • 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 What They Give You
  • Part II: Working with Code
    • Chapter 7. Writing Code in IntelliJ IDEA
    • Chapter 8. Staying in the flow with code completion & generation
      • 8.1. Basic completion
      • 8.2. Smart completion
      • 8.3. Postfix completion
      • 8.4. Complete statement
      • 8.5. Live templates
      • 8.6. Generate new (file templates)
      • 8.7. Generate from error or warning
    • Chapter 9. Always Green with Intelligent Suggestions
      • 9.1. How can I tell if IntelliJ IDEA has a suggestion?
      • 9.2. Fix Errors
      • 9.3. Improve Code
      • 9.4. Change Code
      • 9.5. Spelling
    • Chapter 10. Think "Keyboard First" with Editor tips
      • 10.1. Must Have Shortcuts
      • 10.2. Selecting Code
      • 10.3. Convenience Shortcuts
      • 10.4. Formatting
      • 10.5. Arranging Your Code
      • 10.6. More information
    • Chapter 11. How to Move Through Your Code
      • 11.1. Finding Anything
      • 11.2. Viewing and Opening Recent Files
      • 11.3. Viewing and Moving to Recent Locations
      • 11.4. Moving Forward and Backward through code
      • 11.5. Moving between your Class and its Test
      • 11.6. Finding Where This Code is Used
    • Chapter 12. Working with Dependencies
      • 12.1. Understanding the terminology
      • 12.2. Seeing your Project’s Dependencies
      • 12.3. Adding dependencies with Maven or Gradle
      • 12.4. Updating Dependencies
      • 12.5. Adding Dependencies Without a dependency management tool
    • Chapter 13. Keeping Track of Code Changes
    • Chapter 14. Enable Version Control (Git)
      • 14.1. Git Log Window
      • 14.2. What happens when you change code under version control
      • 14.3. What to look for when you’re ready to commit code
      • 14.4. Your last line of defence
      • 14.5. Getting code from version control (GitHub)
    • Chapter 15. Reading Code
      • 15.1. Inlay Hints
      • 15.2. Code Vision
      • 15.3. Quick Definition and Documentation
      • 15.4. Javadoc
      • 15.5. Code Folding
      • 15.6. Code Analysis
      • 15.7. Language Injection
      • 15.8. Navigation
      • 15.9. Version Control
      • 15.10. Automated tests
  • Part III: Running, Debugging and Testing
    • Chapter 16. Running Your Code
    • Chapter 17. Terminate a process
    • Chapter 18. Getting Started with Debugging
    • Chapter 19. Getting Started with Testing
    • Chapter 20. Combining Testing and Debugging
    • Chapter 21. Understanding what you’re running
      • 21.1. What is a Run Configuration?
      • 21.2. Editing Configurations
      • 21.3. FAQs for running applications and tests
      • 21.4. How do I…​ see the actual command IntelliJ IDEA is using to run my application
      • 21.5. (⌃⌃ | Ctrl+Ctrl) Run Anything
      • 21.6. Summarising the Run Configurations Dialog
  • Part IV: IntelliJ IDEA Essentials
    • Chapter 22. What an IDE gives you
    • Chapter 23. Refactoring your code
      • 23.1. Renaming
      • 23.2. Extracting and Inlining
      • 23.3. Change a method’s signature
      • 23.4. Move statement
      • 23.5. Data flow analysis
      • 23.6. Safe delete
      • 23.7. Language level migration
    • Chapter 24. Applying Inspections and intentions
      • 24.1. Intentions
      • 24.2. Notes on Specific Inspections
    • Chapter 25. Formatting and arranging your code
      • 25.1. Formatting whole or part of a file
      • 25.2. Code Format Settings
      • 25.3. Using Alt+Enter to see and change relevant code style settings
      • 25.4. Using EditorConfig files
      • 25.5. Reformat on commit
      • 25.6. Rearranging code in your classes
    • Chapter 26. Using multiple clipboards
    • Chapter 27. Diving into debugging
      • 27.1. Breakpoints
      • 27.2. Seeing Program State
      • 27.3. Remote debugging
      • 27.4. Profiling
    • Chapter 28. Expanding on testing
      • 28.1. Test Coverage
      • 28.2. Tips for navigation while testing
      • 28.3. Testing Tools FAQ
    • Chapter 29. Working with a build tool
      • 29.1. Why do you need dependency management?
      • 29.2. Importing a project that uses a build tool
      • 29.3. The build tool window
      • 29.4. Build tools FAQ
      • 29.5. More info
    • Chapter 30. Making version control work for you
      • 30.1. Why Work with a Version Control System
      • 30.2. The Commit Tool Window
      • 30.3. The Git Tool Window
      • 30.4. FAQ’s on Commit and Git Tool Window
      • 30.5. How do I…​ delete my branch?
      • 30.6. Your .gitignore file
    • Chapter 31. Getting rescued by local history
    • 32. Running commands in the terminal
      • 32.1. Opening locations in the terminal
      • 32.2. Opening URLs from your terminal
      • 32.3. Running Commands
    • Chapter 33. Managing your TODOs
    • Chapter 34. Pairing with code with me
      • 34.1. Using Code With Me
      • 34.2. Tips for Code With Me
    • Chapter 35. Working with plugins
    • Chapter 36. Understanding Java in IntelliJ IDEA
      • 36.1. Where do I configure the JVM for IntelliJ IDEA?
      • 36.2. Where do I see the JVM settings for my project?
      • 36.3. Troubleshooting JVM errors
    • Chapter 37. Project Structure: Setting language versions and configuring your modules.
      • 37.1. Project Structure: Project
      • 37.2. Project Structure: Modules
      • 37.3. Project Structure: Libraries
      • 37.4. Project Structure: Facets
      • 37.5. Project Structure: Artifacts
      • 37.6. Sharing Project Structure Settings
    • Chapter 38. Looking in your .idea folder
      • 38.1. .idea folder contents
    • Chapter 39. Changing IntelliJ IDEA Settings
      • 39.1. Preferences/Settings dialog
      • 39.2. Preferences/Settings in the Search Everywhere dialog
    • Chapter 40. Getting Help
      • 40.1. Online Help
      • 40.2. IntelliJ IDEA YouTube
      • 40.3. IntelliJ IDEA Blog
      • 40.4. IntelliJ IDEA Community Forums
      • 40.5. StackOverflow
      • 40.6. YouTrack
    • Chapter 41. Getting to Know IntelliJ IDEA Summary
  • Appendix A: Background & History
    • A.1. What are the differences between the Community and Ultimate versions?
    • A.2. Who makes IntelliJ IDEA?
  • Appendix B: Top keyboard shortcuts
    • B.1. "Must Know" Shortcuts
    • B.2. Coding
    • B.3. Navigation
    • B.4. Running and Debugging
    • B.5. How do I configure my own shortcuts and abbreviations?

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

Do Well. Do Good.

Authors have earned$11,978,423writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub