Code Completion in Language Injections

See how to use code completion inside strings and other places.

GoLand provides code completion and analysis in injected strings for SQL and databases statements, JavaScript, CSS, HTML, XML, and RegExp, etc.

Place the cursor within the literal (between the quotation marks) and press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), select Inject language or reference, choose which one of supported injection language you want to use and start typing, auto-completion will appear instantly.


Related Resources

Completion for non-imported Go Modules
Completion for non-imported Go Modules
Import a module in to your project.
Completion with the Tab key
Completion with the Tab key
A small, but handy feature that makes it a little easier to complete symbol names.
Exclude Items from Auto-imports and Completion
Exclude Items from Auto-imports and Completion
Exclude certain paths from auto-import and completion.