Mojo for Visual Studio CodeThis VS Code extension from the Modular team adds support for the Mojo programming language. Features
Get started
ConfigurationThe extension will attempt to find the path of the Mojo SDK installation using
the
Code CompletionTo trigger a completion press Rebind the hotkey in Preferences: Open Keyboard Shortcuts > Hover and Doc HintsHover over a symbol with your cursor for doc hints. The default hotkey
to trigger it in macOS is Rebind the hotkey in Preferences: Open Keyboard Shortcuts >
Code DiagnosticsCode diagnostics are indicated with an underline on the code and details appear
when you hover. You can also see them in the Rebind related hotkeys in Preferences: Open Keyboard Shortcuts >
Tip: Also try the Quick FixIf there is an available quick fix with the code diagnostic, click
the lightbulb icon or use the default hotkey Rebind the hotkey in Preferences: Open Keyboard Shortcuts >
Run Mojo FileThere will be a small Bind a hotkey in Preferences: Open Keyboard Shortcuts >
Code FormattingFrom the command palette run Restarting Mojo ExtensionThe extension may crash and produce incorrect results periodically, to fix this
from the command palette search for Bind a hotkey in Preferences: Open Keyboard Shortcuts >
|