logo
0
0
Login

CNB 远程开发默认环境

包含软件:git, git-lfs, jq, rsync, curl, vim, wget, unzip, openssh-server, zsh, oh-my-zsh, openjdk-17-jdk, kotlin-compiler

包含 vscode 插件: coding-copilot,vscode-yaml,githistory,gitblame,git-graph,vscode-yaml,fwcd.kotlin,formulahendry.code-runner

包含 oh-my-zsh 插件:git zsh-autosuggestions, zsh-syntax-highlighting

Kotlin 开发支持

  • JDK版本: OpenJDK 17
  • Kotlin编译器: Kotlin 1.9.20
  • VS Code插件: Kotlin Language (fwcd.kotlin)
  • 运行插件: Code Runner (formulahendry.code-runner)
  • 支持文件类型: .kt, .kts

NOVNC

使用方法

  1. 创建Kotlin文件 (hello.kt):
fun main() { println("Hello, Kotlin!") }
  1. 使用Code Runner运行 (Ctrl+Alt+N) 或在终端中运行:
kotlinc hello.kt -include-runtime -d hello.jar java -jar hello.jar
  1. 或者直接运行Kotlin脚本:
kotlin hello.kt

镜像

cnbcool/default-dev-env:latest

全局命令

从外部一键导入仓库

cnb-init-from https://xxxx.com/your-code.git
LFS_MAX_SIZE=256 cnb-init-from https://xxxx.com/your-code.git