This extension adds two commands to the context menu that allow the user to indent the current line or selected lines.
To install the extension:
- Open the Extensions view (Ctrl+Shift+X).
- Search for "Indent From Context Menu".
- Click the "Install" button to install the extension.
To use the extension:
- Open a file in VS Code.
- Right-click on the editor to open the context menu.
- Select the "Indent Right" command to indent the current line or selected lines.
- Alternatively, you can use the "Indent Left" command to remove indentation from the current line or selected lines.
This extension was developed using OpenAI's ChatGPT Dec 15 Version. I don't know any TypeScript and don't know how to develop a VS Code extension. I used ChatGPT as an experiment and developed the extension in about three hours. It explained me everything from installing the necessary tools to how to upload it. The AI needed my guidance to fix a few bugs, but it wrote almost everything by itself. It also wrote most of the documentation.
This extension is licensed under the MIT License. See the LICENSE file for details.
- The indentation functionality is based on the VS Code Extension API.