ARTICLE

VSEditorPlus for Visual Studio 2022: Features and Safe Use

VSEditorPlus is a Visual Studio extension built to put several repetitive editing and maintenance actions closer to the code window. You can view the extension in the Visual Studio Marketplace.

This guide explains the features currently described by the extension, what each action is intended to do, and what to check before using commands that change source code or database objects.

1. Inline comment and uncomment actions

For C# and JavaScript files, comment/uncomment controls appear alongside the visible lines in the editor's scrolling area. They are part of the editor interface rather than text inserted into the source file, so they are designed for quick line-level toggling while you work.

VSEditorPlus showing comment and uncomment controls beside visible lines in the Visual Studio editor
Inline controls are intended to make quick comment changes easier without typing comment markers by hand.

After using a control, check the edited lines and build or run the relevant tests. Commenting code out can change which statements execute, and uncommenting code can expose code that no longer compiles.

2. Find and remove methods that contain errors

The extension includes an action to identify methods that contain errors and remove those methods after confirmation. This may help when cleaning up a file, but an error does not necessarily mean a method is unwanted: the method could be incomplete work, a temporary debugging change, or code that depends on another unfinished change.

VSEditorPlus displaying the method-cleanup action for methods with errors

Use this action carefully. Commit your changes or make a copy of the file first, read the confirmation dialog, and inspect the resulting source diff. Do not use automated removal as a substitute for understanding the compiler errors.

3. Remove empty methods

A separate action can remove empty methods after confirmation. This can be useful during cleanup, but empty methods are sometimes intentionalโ€”for example, a required event handler, an override kept for a reason, or a method prepared for implementation later.

VSEditorPlus displaying the action for removing empty methods

Review each proposed deletion. If a method is intentionally empty, keep it or document why it must remain in the file.

4. Copy a missing table from another database

The extension also documents a database helper that lists databases containing a table that is missing from the current context, then offers to copy a table after the user confirms the action.

VSEditorPlus showing database choices for the missing-table import helper

Database changes need extra care. Verify the source database, destination database, table name, and connection before confirming. Try the operation against a non-production copy first and make sure a recent backup is available. Confirm whether the operation copies the schema, data, or both for your particular workflow before relying on the result.

Installation and a sensible first run

  1. Open the VSEditorPlus Marketplace listing and follow its current installation instructions.
  2. Restart Visual Studio if the installer asks you to, then open a small C# or JavaScript file to try the inline commenting controls.
  3. Before testing a source-cleanup command, create a commit or copy of the file so you can restore the original if needed.
  4. Review the changes, rebuild the project, and run the relevant tests before keeping them.
  5. For the database helper, confirm source and destination details and test on non-production data first.

What this extension shouldโ€”and should notโ€”replace

VSEditorPlus provides shortcuts for specific editing and maintenance tasks. It does not prove that the remaining code is correct, explain every compiler error, or replace Visual Studio's compiler, debugger, source control, code review, and test workflow. Treat its actions as tools that still require developer judgement.

For the original announcement, see VS Editor Plus: a Visual Studio 2022 productivity extension. You can also browse the broader Visual Studio tutorials for debugging, package management, and development workflows.

NEWSLETTER

Subscribe to the Algolassi newsletter

Get practical .NET, C#, Blazor, SQL Server and developer tips in your inbox. No spam, just useful updates.

๐Ÿค– AlgoLassi Assistant Have a question about this tutorial?

Ask AlgoLassi and get an answer plus the tutorials worth studying next.

Ask a question

๐Ÿ’ฌ Comments

Sign in with Google to publish immediately, or comment anonymously and wait for approval.

Comments will appear here when available.