This concludes our tutorial on IntelliJ Keyboard Shortcuts - Compile, Debug, Run and I hope you've found it useful! The following keyboard shortcuts will help you navigate your way through debugging your Scala applications.
The following keyboard shortcut will allow you to quickly launch your Scala application in Debug mode: This is equivalent to selecting the Run menu item from the Build menu.The following keyboard shortcut will allow you to quickly launch your Scala application in Run mode: Keyboard Shortcut You can also use the following keyboard shortcuts: If you would like to compile specific module, package or project, you can select them from the Project panel on the left hand side and then select Build and then Compile.IntelliJ keeps track of any modified files and the above keyboard shortcut will compile only those files that have been modified.This is equivalent to selecting the Make Project from the Build menu: The following keyboard shortcut will allow you to compile your Scala application: As a result, this keyboard shortcut is perhaps the one which you will find most useful when writing your Scala code!.On the functional side which we will see in upcoming tutorials, chaining functions together may change the return type of your expression. As we've mentioned in the Scala Introduction tutorial, Scala is both an Object Oriented and Functional programming language.You will then see a tooltip which will show you the type of the args variable. In our example, the type is an Array of String.
INTELLIJ KEY TO GET INFO ABOUT METHOD WINDOWS
Instead, place your cursor on the args variable and press Alt + = if you are using Windows or Ctrl + Shift + P if you are on a Mac. But when you have multiple functions which are being chained, this constant switching back and forth between editor windows would become a distraction! Sure, you could navigate to the definition of the args variable. The following keyboard shortcut will allow you to inspect the type for a given expression:Īs an example, say you wanted to know the type of the args variable which we inherited by extending the App trait in HelloWorldWithArgumentsDebug from Tutorial 07. If you do not have IntelliJ installed or our allaboutscala project, please follow the previous tutorials. Open IntelliJ and our allaboutscala project In this tutorial, we will show some additional useful keyboard shortcuts which will help you be more productive when developing your Scala applications using IntelliJ.ġ.