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.

How to use:

Place the cursor within the literal (between the quotation marks) and press ⌃⏎ (macOS) / Ctrl+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

Better time format in completion
Use the commonly known date/time formatting strings while writing time formatting in Go
Complete Current Statement
Add trailing commas or braces and move the cursor with a single keystroke
Completion for non-imported Go Modules
Import a module even if it was imported or used in your project