Inline code generation
Last updated
Last updated
Inline code generation can be used together with single-line comments to trigger the generation of type, method, or inline code. This operation can be triggered using the keyboard shortcut Shift ⇧ + Ctrl + Enter on macOS operating system or Shift ⇧ + Ctrl + Enter on Windows operating system.
The inline code generation uses contextual prompts. Depending on the location of the prompt it will return different results. As an example adding a prompt as file top level comment will generation a class, adding the comment within a class will result in generating a method and adding the comment inside a method or function will result with inline code.