Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>endif-commentsNew to Visual Studio Code? Get it now.
endif-comments

endif-comments

FinnC

|
50 installs
| (3) | Free
Automatically addds a comment after #endif in C files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Endif Comments

Automatically adds a comment after #endif in C files in Visual Studio Code.

Features

  • Automatically inserts a comment after #endif directives in C files.
  • Comments include information about the matching #if directive.
  • Can be run on any file to add comments to pre-existing code.

Installation

  1. Open Visual Studio Code.
  2. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open the Extensions view.
  3. Search for "Endif Comments" and click Install.
  4. Reload Visual Studio Code to activate the extension.

Usage

Simply type #endif in a C file, and a comment will be automatically inserted after it, containing information about the matching #if directive.

Run the command "Add Comment To All #endif Directives" to add the comment to pre-existing files.

Example

#if SOME_CODE // Some code #endif /* #if SOME_CODE */

Configuration

This extension does not require any configuration.

License

This extension is licensed under the MIT License(LICENSE).

Issues

If you encounter any issues or have suggestions for improvements, please file them in the bin.

Contributing

Contributions are not currently supported.

Credits

This extension was created by Finn Cormack.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft