# Code Actions

## Summary

Code actions are contextual operations that can be used either in JetBrains or VS Code plugins to trigger an action in the scope of a method or function.

Those actions include:

* Editing code with prompt.
* Replacing or generating code.&#x20;
* Replacing or generating documentation.&#x20;
* Fixing code syntax.

### Using Code Actions in Visual Studio Code

The Code Actions are available per function or method code as quick-fix actions that can be either accessed by clicking on the light bulb icon or by pressing the "show quick fixes" keyboard shortcut (⌘CMD + .(dot) on macOS).

<figure><img src="https://1266356985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy4Gm9KBnMQJROGH6Q242%2Fuploads%2FYFDDQ6sChz0cwQkrTb3E%2Fcodemaker-vscode-code-actions.png?alt=media&#x26;token=5fb4abbf-5115-4830-95a0-0712755c3e70" alt=""><figcaption></figcaption></figure>

### Using Code Actions in JetBrains

The Code Actions are available per function or method code as quick-fix actions that can be either accessed by clicking on the light bulb icon or by pressing Option+Enter on macOS.

<figure><img src="https://1266356985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy4Gm9KBnMQJROGH6Q242%2Fuploads%2FaiKt1HOYz6ssLEWXKrqv%2Fcodemaker-jetbrains-code-actions.png?alt=media&#x26;token=5e8ccb38-602f-49c1-9312-ee5fdebf5159" alt=""><figcaption></figcaption></figure>
