如何在Intellij中打开SBT工具窗口? [英] How to open SBT Tool Window in Intellij?

查看:277
本文介绍了如何在Intellij中打开SBT工具窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题可能听起来很愚蠢,但我一直在互联网上搜索一段时间,却找不到答案。如何在Intellij中打开SBT工具窗口(显然安装了scala和SBT插件)?

This question may sound silly for you, but I have been searching the Internet for a while and couldn't find the answer. How can I open SBT Tool Window in Intellij (scala and SBT plugins obviously installed)?

推荐答案

在菜单中:查看 - >工具Windows 应该有两个条目:

In Menu: View -> Tool Windows there should be two entries:


  1. SBT

  2. SBT控制台

您可以使用第一个从SBT刷新IDEA项目结构并查看依赖项。

The first you can use to refresh IDEA project structure from SBT and view dependencies.

第二个为您提供一个控制台,您可以在其中运行 sbt 命令。

The second gives you a console where you can run sbt commands.

更新:

正如贾斯汀所说:

IntelliJ IDEA 2017.1 Build# IC-171.3780.52 有一种新的和(imho)更好的方法:

As of IntelliJ IDEA 2017.1 Build #IC-171.3780.52 there is a new and (imho) better way:

(如果你正在使用SBT项目,那就是)

(If you are working with an SBT project, that is)

当你打开 SBT工具窗口时,你会发现一个新的 scala终端图标:

When you open the SBT Tool Window, you will find a new scala terminal icon:

这将打开一个sbt控制台会话与您的sbt项目导入设置。

This will open an sbt console session with your sbt project import settings.

一主要的好处是你实际上(最终)会获得编译器警告和错误的代码行链接。

One major benefit is that you will actually (finally) get links to your code lines for compiler warnings and errors.

这篇关于如何在Intellij中打开SBT工具窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆