Skip to content

Instantly share code, notes, and snippets.

@vitalfadeev
Last active March 14, 2026 16:06
Show Gist options
  • Select an option

  • Save vitalfadeev/51afb3eaa42ddf69d0ee62aff15968b7 to your computer and use it in GitHub Desktop.

Select an option

Save vitalfadeev/51afb3eaa42ddf69d0ee62aff15968b7 to your computer and use it in GitHub Desktop.
Sublime 4 D lang build with dub, or with dub ldc2
{
"shell_cmd": "dub build",
"file_regex": "^(.*?)\\(([0-9]+)(,[0-9]+)?\\)",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.d",
"syntax": "Packages/D/DMD Output.sublime-syntax",
"keyfiles": ["dub.sdl", "dub.json"],
"variants":
[
{
"name": "dub Run",
"shell_cmd": "dub run",
},
{
"name": "dub test",
"shell_cmd": "dub test",
},
{
"name": "dub Run ldc2",
"shell_cmd": "dub run --compiler=ldc2",
},
{
"name": "dub test ldc2",
"shell_cmd": "dub test --compiler=ldc2",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment