Intellij
By Nadim Bahadoor Last updated: March 16, 2018 at 11:14 am

Download the latest version of IntelliJ IDEA for Windows, macOS or Linux. IntelliJ IDEA Coming in 2020.3 What's New Features Resources Buy Download. Rider provides 2200+ live code inspections, hundreds of context actions and refactorings brought by ReSharper, and combines them with the IntelliJ platform's solid IDE features. Despite a heavy feature set, Rider is designed to be fast and responsive.

I am a veteran of Intellij Idea on Linux (and going back several years on Windows as well). I used the Alt-S-F (project global find) and Alt-S-R (project global search/replace) frequently. Where is that functionality on Mac? Note: I am not referring to Command-F or Command-R - they simply do find or replace in the current file. Double Click IntelliJ; Click Open; Step 8: You should be able to see IntelliJ application has been opened. Step 9: Welcome to IntelliJ IDEA screen. Step 10: You can add IntelliJ to Mac’s Dock by right-clicking IntelliJ which is opened in the Dock - Click Options- Click Keep in Dock so that you can quickly access IntelliJ next time. Runs on: Mac OS X, Mac OS X 10.4, Mac OS X 10.5 InterGate Policy Manager for Mac OS X v.9.2.5 InterGate Policy Manager for Mac OS X - A comprehensive Internet access management solution, providing control of web content access, usage of P2P, IM and Skype, logging and reporting of user activity, as well a core IP router and firewall.

Overview

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.

Intellij For MacIntellij For Mac

Steps

1. Open IntelliJ and our allaboutscala project
If you do not have IntelliJ installed or our allaboutscala project, please follow the previous tutorials.

2. Inspect expression type
The following keyboard shortcut will allow you to inspect the type for a given expression:

Keyboard ShortcutWindowsMac
Inspect expression typeAlt + =Ctrl + Shift + P

As 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.

Sure, you could navigate to the definition of the args variable. But when you have multiple functions which are being chained, this constant switching back and forth between editor windows would become a distraction!

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. 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.

NOTE:

  • As we've mentioned in the Scala Introduction tutorial, Scala is both an Object Oriented and Functional programming language. On the functional side which we will see in upcoming tutorials, chaining functions together may change the return type of your expression.
  • As a result, this keyboard shortcut is perhaps the one which you will find most useful when writing your Scala code!

3. Compile any modified files
The following keyboard shortcut will allow you to compile your Scala application:

Keyboard ShortcutWindowsMac
Compile any modified filesCtrl + F9Cmd + F9

This is equivalent to selecting the Make Project from the Build menu:

NOTE:

  • IntelliJ keeps track of any modified files and the above keyboard shortcut will compile only those files that have been modified.
  • 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.

You can also use the following keyboard shortcuts:

Mac
Keyboard ShortcutWindowsMac
Compile selected module or packageCtrl + Shift + F9Cmd + Shift + F9

4. Run your Scala application
The following keyboard shortcut will allow you to quickly launch your Scala application in Run mode:

Keyboard ShortcutWindowsMac
Run Scala ApplicationShift + F10Ctrl + R

NOTE:

  • This is equivalent to selecting the Run menu item from the Build menu.

5. Debug your Scala application
The following keyboard shortcut will allow you to quickly launch your Scala application in Debug mode:

Keyboard ShortcutWindowsMac
Debug Scala ApplicationShift + F9Ctrl + D

NOTE:

  • This is equivalent to selecting the Debug menu item from the Build menu.

6. Stepping through the debugger
The following keyboard shortcuts will help you navigate your way through debugging your Scala applications.

Keyboard ShortcutWindowsMac
Step overF8F8
Step intoF7F7
Step outShift + F8Shift + F8
ResumeF9Cmd + Alt + R

This concludes our tutorial on IntelliJ Keyboard Shortcuts - Compile, Debug, Run and I hope you've found it useful!

Stay in touch via Facebook and Twitter for upcoming tutorials!

Don't forget to like and share this page :)

Intellij

Summary

In this article, we went over the following:

  • How to inspect an expressions's type
  • How to compile only modified files
  • How to Run your Scala application
  • How to Debug your Scala application
  • How to step through your Scala application in debugging mode.

Download Intellij For Mac

Tip

  • A full list of Windows and Mac keyboard shortcut from the JetBrains website.
  • Cheatsheet of the additional shortcuts we've used in this tutorial.
Keyboard ShortcutWindowsMac
Additional useful shortcuts
Inspect expression typeAlt + =Ctrl + Shift + P
Compile modified filesCtrl + F9Cmd + F9
Run Scala applicationShift + F10Ctrl + R
DebugShift + F9Cmd + D
Debugging: Step overF8F8
Debugging: Step intoF7F7
Debugging: Step outShift + F8Shift + F8
Debugging: ResumeF9Cmd + Alt + F

Source Code

The source code is available on the allaboutscala GitHub repository.

Intellij Commands For Mac

What's Next

If you have followed the previous tutorials, you should by now feel more comfortable with IntelliJ IDEA.

This would be a good place to proceed to Chapter 2 where I will provide the basic foundations of the Scala language.

Stay tuned!

Founderallaboutscala.com
Technology and Finance Consultant with over 14 years of hands-on experience building large scale systems in the Financial (Electronic Trading Platforms), Risk, Insurance and Life Science sectors. I am self-driven and passionate about Finance, Distributed Systems, Functional Programming, Big Data, Semantic Data (Graph) and Machine Learning.
Coments are closed

Most Popular Posts

  • Mac Os Runtime For Java Download
  • Mac Os For Virtualbox Ubuntu
  • Mac Os X For Ibook G3
  • Clash Of Clan For Mac

Scroll to top