Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SLURM Syntax SupportNew to Visual Studio Code? Get it now.
SLURM Syntax Support

SLURM Syntax Support

神秘的q桑

| (0) | Free
Syntax highlighting, completion and diagnostics for #SBATCH directives
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SLURM Language

为 Slurm 作业脚本提供 VS Code / Cursor 支持。.slurm 与 .sbatch 会作为 Shell 脚本打开,并在其中识别 #SBATCH。

功能

  • 高亮 #SBATCH、长短选项和参数值
  • 补全 #SBATCH、选项,以及部分选项的预设值
  • 悬停显示选项的简短说明
  • 将不支持的选项标为错误

支持的选项定义在 commands.js。

开发

需要 VS Code ^1.120.0。

bun install

用 F5 启动扩展开发主机。打包:

npx @vscode/vsce package

许可

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft