In the next tutorial, I will show some more useful keyboard shortcuts with regards to finding the return type of a function, compiling, running and debugging shortcuts.Once we arrive at the right file and the right place, we can start editing our code.
The source code is available on the allaboutscala GitHub repository.
How to search with more fine grained search criteria.How to search files which are referencing a particular class, trait, function etc.
You will see a list of Scala classes that are referencing the App trait in your project as follows. You then place the cursor on the App trait name and then press Alt + F7. If you would like to find all the files that are extending the App trait, you can first open the App trait using for example Step 2 above. So far in our allaboutscala project, we've used the App trait in a few places. The keyboard shortcut below will find any files which are referencing your given selection. You can use the up and down arrows to select the file and press the enter key to open it. By pressing the shift key twice, you will see a search dialog where you can enter App and it will list the matching results.
The keyboard shortcut below will open a dialog where you can simply type in any file you are looking for.Īs an example, say you wanted to have a look at the implementation of the App trait which we saw in Tutorial 5. If you do not have IntelliJ installed or the allaboutscala project, please follow the previous tutorials. Open IntelliJ and our allaboutscala project In this tutorial, we will show some of the most common IntelliJ search keyboard shortcuts which will help you be more productive when writing your Scala projects.ġ.