Home

Awesome

ETC (Explain This Code)

ExplainThisCode is A VSCode extension that uses the ChatGPT API to provide explanations for selected code.

explain-this-code.gif

Features

Requirements

Installation

There are two ways to install this extension:

Extension Settings

To set the value of the explainThisCode.apiKey extension setting:

  1. Open the settings editor by selecting the File menu, then Preferences and then Settings, or by using the keyboard shortcut Ctrl + , (Windows) or Command + , (Mac).

  2. In the search bar at the top of the editor, search for explainThisCode.apiKey.

  3. Click on the explainThisCode.apiKey setting and enter your ChatGPT API key in the input field provided.

  4. Click the Save button to save your changes.

Alternatively, you can also set the value of the explainThisCode.apiKey setting using the set() function of the ConfigurationChangeEvent class. For example:

vscode.workspace.getConfiguration().update('explainThisCode.apiKey', 'my-api-key', vscode.ConfigurationTarget.Global);

This will set the value of the explainThisCode.apiKey setting to 'my-api-key' for all workspaces.

Release Notes

2.0.0

1.0.0

Credits

License

This extension is licensed under the MIT License.

Contact

Telegram: @evyatar9

Discord: evyatar9

Support

You can support my work buying me a coffee:

<img width=250 alt="buymeacoffe" src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png">

Contributing

If you would like to contribute to the ETC extension, feel free to submit a pull request or report any issues you encounter on the ExplainThisCode repository.

Stargazers over time

Stargazers over time