-
Notifications
You must be signed in to change notification settings - Fork 57
Useful extensions
Some VS Code extensions useful for Crystal development:
Native Debug provides debugging for compiled languages like Crystal.
Remember to compile using
--debug
flag
Endwise adds end
s automatically to blocks as you type.
Auto Comment Blocks provides auto comments block using Shift+Enter
.
{
"auto-comment-blocks.hashStyleBlocks": [
"crystal"
]
}
Code Runner runs selected code snippets per click or keyboard shortcut.
VS Code on Windows may actually need the following settings:
- "terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe" -> similar to your bash.exe
- "code-runner.runInTerminal": true
(due to this you do not need to run it with "crystal.bat" instead of "crystal" for this tool)
You can modify your Crystal-Command (standard run, run --release, ...) in settings ("code-runner.executorMapByFileExtension" and/or "code-runner.executorMap")
Note: be aware of type inference rules in your snippet, its morely useful for viewing correct output / text-generation of simple methods for example!