So, how do I exit out of the Kotlinc command-line compiler? I entered kotlinc on my terminal and played with some kotlin on my Mac and now couldn't figure how to exit. It is like the first time I tried vim. Tried ctrl+c, exit, exit(), quit , quit() aaand :q, but nothing worked!

我搜索了官方的documentation,没有找到这个信息.在这里判断了一下,我没有发现任何之前的问题.有什么帮助吗?

推荐答案

您可以使用命令":quit"退出.

it's in the diagram from https://kotlinlang.org/docs/tutorials/command-line.html enter image description here

you can type ':help' for more commands available to you.

Kotlin相关问答推荐

如何在 Big Data 中使用Inc过滤器?

使用数据存储首选项Kotlin Jetpack Compose

如何在Kotlin中为接受varargs的函数添加带有默认值的新参数?

Kotlin - 什么时候和什么时候不喜欢内联函数,为什么?

从 Kotlin 的父类获取函数注解

通过快捷键手动砍掉功能参数等

如何在数据类中删除空格 (String)?

Kotlin 复制列表中的项目以创建具有相同数据的不同对象的新列表

创建包含 3 个相同项目的列表/使用返回类型重复

如何使用 Firebase 和 Kotlin 在文本 (Jetpack Compose) 中显示当前用户名?

Kotlin Path.useLines { } - 如何不获取 IOException("Stream closed")?

如何在 kotlin 中创建自定义迭代器并添加到现有类?

使用 Compose for Desktop Bundle 文件

将子元素放在一个列表中

为空数组添加值

为什么我们在 kotlin 中需要 noinline?

Kotlin boxed Int 不一样

Kotlin 的 Double.toInt() 中使用了哪种方法,舍入还是截断?

Kotlin Android:属性委托必须有一个 'getValue(DashViewModel, KProperty*>)' 方法

如何在 Gradle Kotlin DSL 中使用来自 gradle.properties 的插件版本?