Skip to content

[Feature Request]: Select variable name including "@" prefix when double-clicked #19545

@MartinVycital

Description

@MartinVycital

Feature Description

When I double click any @Variable in the T-SQL code, it will be much more convenient if whole variable name including the @ character was selected. Today, just the variable name (without @) is selected.

Problem and Motivation

Every other T-SQL editor (including e.g. Azure Data Studio or SMSS) has this feature. It just makes it more comfortable to use (e.g. for copying variables around or in and out of dynamic SQL).

Behavior in vscode-mssql Behavior in Azure Data Studio
Image Image

When I first started to use vscode-mssql few months ago I thought this is an intended feature and I'll get used to it, but I never did - current behavior is just inferior in all aspects.

Note

I'm aware that this can be set up globally in VS Code by removing the @ character from editor.wordSeparators. But I think this behavior is specific to T-SQL only, so it must be controlled by this extension.

Related Area

  • Connection dialog
  • Query editor
  • IntelliSense/auto-completion
  • Query results panel
  • Object Explorer
  • Table Designer
  • Schema Compare
  • Schema Designer
  • Query Plan Visualizer
  • Other (please describe below)

Confirmation

  • I have searched existing feature requests and couldn't find a match
  • I want to help implement this feature

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions