Skip to content

Commit 15b3f6f

Browse files
authored
Merge pull request #3042 from makingthematrix/scala-ides
A new page about Scala IDEs + reordering of Getting Started
2 parents 10ac417 + dd61419 commit 15b3f6f

File tree

9 files changed

+54
-7
lines changed

9 files changed

+54
-7
lines changed

_data/doc-nav-header.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
- title: Getting Started
2-
url: "/getting-started/index.html"
2+
url: "#"
3+
submenu:
4+
- title: Install Scala
5+
url: "/getting-started/install-scala.html"
6+
- title: Scala IDEs
7+
url: "/getting-started/scala-ides.html"
38
- title: Scala 3
49
url: "#"
510
submenu:

_overviews/getting-started/index.md renamed to _overviews/getting-started/install-scala.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ and in the official sbt [documentation](https://www.scala-sbt.org/1.x/docs/index
183183
184184
### With an IDE
185185
186-
You can skip the rest of this page and go directly to [Building a Scala Project with IntelliJ and sbt](/getting-started/intellij-track/building-a-scala-project-with-intellij-and-sbt.html)
187-
186+
You can read a short summary of Scala IDEs on [a dedicated page](/getting-started/scala-ides.html)
188187
189188
## Open hello-world project
190189
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: singlepage-overview
3+
title: Scala IDEs
4+
5+
partof: scala-ides
6+
7+
permalink: /getting-started/:title.html
8+
9+
keywords:
10+
- Scala
11+
- IDE
12+
- JetBrains
13+
- IntelliJ
14+
- VSCode
15+
- Metals
16+
---
17+
18+
## Introduction
19+
20+
Theoretically, you can write Scala code even in a notepad and compile and run the code from the terminal. When you do it, the compiler will tell you if it encounters any problems and suggest changes. You can apply that feedback in the notepad and try again.
21+
22+
However, this way of software development will quickly prove to be unusable when you start coding anything more complicated than simple exercises. For larger projects, we highly recommend that you use one of the following IDEs (Integrated Development Environments):
23+
24+
# IntelliJ IDEA + Scala Plugin
25+
26+
[https://jetbrains.com/scala](https://jetbrains.com/scala)
27+
28+
![](../../resources/images/getting-started/IntelliJScala.png)
29+
30+
IntelliJ IDEA is a cross-platform IDE developed by JetBrains that provides a consistent experience for a wide range of programming languages and technologies. It also supports Scala through the IntelliJ Scala Plugin, which is being developed at JetBrains. First, install IntelliJ IDEA Community Edition (unless you don't already use the Ultimate edition) and then add the IntelliJ Scala Plugin.
31+
32+
IntelliJ IDEA and Scala Plugin will assist you in virtually every part of a Scala software developer's work. Use it if you like a solid integrated experience, sane default settings, and tested solutions.
33+
34+
For more information, check out our tutorial [Getting Started with Scala in IntelliJ](/getting-started/intellij-track/building-a-scala-project-with-intellij-and-sbt.html)
35+
36+
# Visual Studio Code + Metals
37+
38+
[https://scalameta.org/metals](https://scalameta.org/metals)
39+
40+
![](../../resources/images/getting-started/VSCodeMetals.png)
41+
42+
Visual Studio Code, commonly called VS Code, is a source code editor developed by Microsoft. Similar to how IntelliJ IDEA requires IntelliJ Scala Plugin to support Scala, you can get support for Scala in VS Code by installing an extension: Metals by Scalameta. In contrast to IntelliJ IDEA + Scala Plugin, VS Code + Metals is is aimed at people who like to get feedback and code intelligence straight from the compiler, which enables them to also try out experimental Scala features. Besides, Metals - as an [language server](https://microsoft.github.io/language-server-protocol/) - is also available to use with a variety of other source-code editors, such as Vim, Sublime Text, Zed, Helix and Emacs, which means that you will get a similar experience in any of them.
43+

_overviews/scala3-book/taste-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ can be installed by following our [getting started guide][get-started].
2323
2424

2525
[reference]: {{ site.scala3ref }}/overview.html
26-
[get-started]: {% link _overviews/getting-started/index.md %}
26+
[get-started]: {% link _overviews/getting-started/install-scala.md %}

_ru/scala3/book/taste-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ next-page: taste-hello-world
2828
2929

3030
[reference]: {{ site.scala3ref }}/overview.html
31-
[get-started]: {% link _overviews/getting-started/index.md %}
31+
[get-started]: {% link _overviews/getting-started/install-scala.md %}

_zh-cn/overviews/scala3-book/taste-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ permalink: "/zh-cn/scala3/book/:title.html"
2424
> 或者,您可以使用 [Scastie](https://scastie.scala-lang.org) 在 Web 浏览器中运行这些示例,这是一个完全在线的编辑器和 Scala 的代码运行器。
2525
2626
[reference]: {{ site.scala3ref }}/overview.html
27-
[get-started]: {% link _overviews/getting-started/index.md %}
27+
[get-started]: {% link _overviews/getting-started/install-scala.md %}

index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sections:
1717
- title: "Getting Started"
1818
description: "Install Scala on your computer and start writing some Scala code!"
1919
icon: "fa fa-rocket"
20-
link: /getting-started.html
20+
link: /getting-started/install-scala.html
2121
- title: "Tour of Scala"
2222
description: "Bite-sized introductions to core language features."
2323
icon: "fa fa-flag"
Loading
Loading

0 commit comments

Comments
 (0)