Skip to content

Add "Comment/Uncomment" Functionality as Context Menu Option and Toolbar Button #26284

Open
@Arileth

Description

@Arileth

Description:
I would like to suggest adding a convenient "Comment out / Uncomment" feature in Azure Data Studio, both as a context menu entry (right-click on selected code) and as a toolbar button.

Current Situation:
Currently, users must rely on keyboard shortcuts to comment or uncomment lines of SQL or code, which may not be intuitive or accessible for all users – especially those coming from other environments like SSMS or Visual Studio, where these functions are more visibly integrated.

Feature Request Details:

Context menu option when right-clicking on selected lines of code:

Comment out (adds -- or /* */ as appropriate)

Uncomment (removes comment characters if present)

Optional toolbar button or icon in the editor window for quick access

Should support both single-line (--) and multi-line (/* ... */) commenting for SQL scripts

Ideal if configurable for other languages (like Python, PowerShell) within notebooks or integrated terminals

Benefits:

Improves usability and accessibility

Enhances productivity for users who prefer or rely on mouse navigation

Aligns with user expectations from other Microsoft development tools

Additional Notes:
This small enhancement would make code editing in Azure Data Studio even more intuitive and user-friendly, especially for new users or those migrating from SSMS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions