Skip to main content

Intelligently using IntelliJ

Overview

IntelliJ is the IDE that we recommend for robot programming on YETI. This page will go over how to use IntelliJ effectively and efficiently. Reading this will make you epic at navigating and organizing your project 

 

Fuzzy Find

Fuzzy Find in IntelliJ enables you to quickly locate files, classes, or symbols. It guesses what you are looking for by keywords or parts of words to find what you are looking for. This can make coding faster because you don't have to spend time browsing files to find what you want.

You can use fuzzy find in IntelliJ by double-clicking the Shift key. When you do this, the following search bar will pop up, and you can just type a keyword or part of the item you are looking for, and IntelliJ will find it for you:

image.png

 

Gradle Stuff

You can access this Gradle tasks menu by hitting the (tootin') elephant on the top-right side of your screen:

Screenshot 2025-06-06 at 12.15.44 PM.png

The ones you'll likely use the most are listed below:

  • build: This is under the build dropdown in the menu. This compiles the code.
  • deploy: This is under the deployutils dropdown in the menu. This deploys the code to the roboRIO.
  • simulateJava: This is under the other dropdown in the menu. This will launch the simulation window and let you simulate your code.

The Gradle refresh lets you refresh your project to sync up any changes to your Gradle config settings. In addition, it can also fix compilation errors. You can do this by hitting this button in the top-left corner of your Gradle menu:

image.png

Note that after running a Gradle task, you can easily run it again by hitting this play button:

Screenshot 2025-06-06 at 12.34.38 PM.png

 

Invalidate Cache

If you are having problems building, you may need to invalidate caches and restart the IDE to fix problems related to outdated or corrupted caches. You can do this by hitting File > Invalidate Caches as shown below:

image.png

 

Renaming Things

When you're renaming symbols, make sure you don't make the fatal (and suuuuuper goofy) mistake of only renaming one instance. This will lead to problems that can only be solved by throwing a magic ring into a volcano. Instead, right-click whatever you want to rename and hit Refactor. Then,> hit RenameRename, and type whatever you want the symbol to be renamed to. This will rename all instances of the symbol and ensure that you don't have to go on a whimsical adventure involving a cool archer elf. Below is the menu you will need to use:

image.png

 

Ctrl-Click

If you are using a Mac, replace Ctrl with Command

One of the most powerful tools IntelliJ will bestow upon you is the Ctrl-click. If you hold Ctrl while clicking on a piece of code, it will take you to its definition and show usages of it. Below is an example:

image.png Before the ctrl-click

image.png While holding Ctrl

image.png It takes you to the definition!

image.png Ctrl-clicking the definition shows the usages!

Now you can Ctrl-click to your heart's content!

Coming Soon!

Git Stuff

So you wanna work with other programmers on a project? On YETI, we use Git and GitHub for organizing contributions between programmers. You can access some Git actions from the IntelliJ icons, but some things are easier to do with the terminal. The following list outlines the Git actions that you'll likely use frequently.

  • Pulling
  • Committing
  • Pushing

Structure