官术网_书友最值得收藏!

Installing IntelliJ IDEA

Go to https://www.jetbrains.com/idea/download. Download the community edition for your platform. The ultimate edition offers more features, but we will not use them in this book.

The following are the steps to install IntelliJ IDEA:

  1. Run IntelliJ Idea.
  2. Select the Do not import settings option:

  1. Choose a UI theme. I personally prefer Dracula, since a dark background saves battery on a laptop and is more gentle on the eyes:

  1.  Create a desktop entry by checking the options given:

  1. In the Create Launcher Script dialog window, check the create a script... checkbox. It will let you open files in IntelliJ from the command line:

  1. Customize the plugins. For each component, click on Customize... or Disable All. We will not need most of the plugins. You can only select the following:
  • Build Tools: Disable All.
  • Version Controls: Only keep Git and GitHub.
  • Test Tools: Disable All.
  • Swing: Disable.
  • Android: Disable.
  • Other Tools: Disable All and keep Bytecode viewer, Terminal, and YAML.
  • Plugin Development: Disable.

You can see the aforementioned plugins in the following screenshot:

  1. Install the featured plugins—some additional plugins are proposed for you to install, such as the Scala plugin and a tool to learn the essential features of IntelliJ.
  1. Click on the Install button for Scala and for the IDE Features Trainer, as shown in the following screenshot, and then proceed by clicking on Start using IntelliJ IDEA:

If you are already a Vim aficionado, you can install  IdeaVim . Otherwise, I would recommend that you avoid it. I personally use it daily, but it took me some time to get used to it.
  1. Click on Create New Project | Scalasbt:

  1. Fill in the following details, as shown in the following screenshot:
  • Name: scala_fundamentals.
  • JDK: Click on New and then select the installation directory of the Oracle JDK.
  • sbt: Choose the version 1.0.4, check Sources.
  • Scala: Choose the latest version 2.12.x, for instance 2.12.4 (IntelliJ lists all the possible versions and will download the one you choose), and check Sources.
  • Click on Finish.

It is going to take some time depending on your internet connection's speed:

  1. You should see the following project structure:

主站蜘蛛池模板: 旺苍县| 安康市| 巴楚县| 安溪县| 克东县| 塔河县| 兰州市| 乐陵市| 宝坻区| 岳阳市| 桑日县| 安溪县| 昌宁县| 抚远县| 全州县| 延吉市| 南部县| 石狮市| 珲春市| 封开县| 盐津县| 宿迁市| 象州县| 娄烦县| 兴安县| 海阳市| 固安县| 上杭县| 镶黄旗| 防城港市| 香河县| 乌审旗| 沭阳县| 阿拉善盟| 陆良县| 尉氏县| 云霄县| 来凤县| 惠水县| 临沧市| 北辰区|