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

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:

主站蜘蛛池模板: 买车| 平顺县| 阳信县| 洪泽县| 来安县| 贵德县| 博罗县| 越西县| 绥棱县| 沛县| 汉源县| 湘西| 临泉县| 老河口市| 河北区| 大丰市| 沭阳县| 武汉市| 工布江达县| 黎川县| 眉山市| 大足县| 琼海市| 蒙阴县| 海丰县| 巢湖市| 新干县| 万荣县| 如东县| 延吉市| 龙井市| 玛曲县| 六枝特区| 广宁县| 新闻| 新源县| 巫溪县| 西乌珠穆沁旗| 五常市| 大渡口区| 溆浦县|