sbt 控制台 - 选项卡完成 [英] sbt console - tab completion

查看:42
本文介绍了sbt 控制台 - 选项卡完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 sbt 1.0.4(撰写本文时的最新版本),运行 sbt console 使我进入 Scala REPL(项目使用 Scala 2.12.4).调用代码完成的键盘命令是什么?Tab 对我不起作用,它只是添加了一个制表符,并且退格符连续被破坏.我在 Linux 中从 Bash 开始 sbt.

I'm using sbt 1.0.4 (latest as of this writing), and running sbt console brings me into the Scala REPL (project uses Scala 2.12.4). What is the keyboard command to invoke code completion? Tab does not work for me, it just adds a tab character and backspace is broken successively. I'm starting sbt from Bash in Linux.

例如Indexe -> IndexedSeq.

推荐答案

有一个 相关问题.所以有一个影响 sbt console 的错误,但是你可以运行 sbt 然后从 sbt 提示输入 console,然后 Tab 按预期工作.

There is a related question. So there is a bug that affects sbt console, but one can just run sbt and then from the sbt prompt enter console, and then Tab works as expected.

这篇关于sbt 控制台 - 选项卡完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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