https://www.cnblogs.com/zpf1092841490/p/10644478.html
sublime text 3配置Kotlin
1. 下载Kotlin compiler
下载地址: https://github.com/JetBrains/kotlin/releases/tag/v1.3.21, 进入网页,找到kotlin compiler, 点击下载,解压
并把kotlin.bat所在目录(Kotlin compilerkotlincin)加入环境变量
2.设置配置文件
打开sublime text 3, Tools--build system--new build system, 设置配置文件:
{
"cmd": ["kotlinc","$file_name","-include-runtime","-d","${file_base_name}.jar","&&", "java","-jar", "${file_base_name}.jar"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.Konlin",
"shell":true
}
效果如图:
File--save, 命名为kotlin, 保存
3. 设置Kotlin代码高亮
点击右下角Tab size右边的plain text,选择Kotlin, 选择完之后代码高亮显示
分类: Kotlin