Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Indent from Context MenuNew to Visual Studio Code? Get it now.
Indent from Context Menu

Indent from Context Menu

Héctor Álvarez Fernández

|
102 installs
| (0) | Free
Adds to the context menu the ability to indent the selected code lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • The indentation functionality is based on the VS Code Extension API.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft