Skip to content

Hectoralvf/indent-from-context-menu

Repository files navigation

Indent From Context Menu

This extension adds two commands to the context menu that allow the user to indent the current line or selected lines.

Installation

To install the extension:

  1. Open the Extensions view (Ctrl+Shift+X).
  2. Search for "Indent From Context Menu".
  3. Click the "Install" button to install the extension.

Usage

To use the extension:

  1. Open a file in VS Code.
  2. Right-click on the editor to open the context menu.
  3. Select the "Indent Right" command to indent the current line or selected lines.
  4. Alternatively, you can use the "Indent Left" command to remove indentation from the current line or selected lines.

Development

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.

License

This extension is licensed under the MIT License. See the LICENSE file for details.

Credits

About

VS Code extension to indent from the context menu

Resources

License

Stars

Watchers

Forks

Packages

No packages published