# Inline code generation

### Inline code generation

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.

<figure><img src="https://1266356985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy4Gm9KBnMQJROGH6Q242%2Fuploads%2FR4pTZ2YVrbZl55AY39Vp%2Fcodemaker-vscode-inline-code-generation.png?alt=media&#x26;token=9399adcc-d713-47b1-9054-5b63627fca2e" alt=""><figcaption></figcaption></figure>

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.
