Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability for comment shortcut #371

Closed
pugliathomas opened this issue Jan 28, 2022 · 8 comments
Closed

Add ability for comment shortcut #371

pugliathomas opened this issue Jan 28, 2022 · 8 comments
Labels
feature: enhancement Request is a enchacement to existing feature
Milestone

Comments

@pugliathomas
Copy link

Please add the Ctl+Shift+K and Ctrl+Shift+U for comment / uncomment as in PBI Desktop and SSMS

@yu-eyerus
Copy link

yu-eyerus commented Jan 28, 2022

Also looking for a comment/uncomment shortcut. Although would prefer CTRL+/ to be consistent with PBI Desktop, DAX Studio, VS Code, etc.

@otykier
Copy link
Collaborator

otykier commented Feb 7, 2022

Short-term, we'll add a shortcut for comment / uncomment which will align with VS comment/uncomment. Longer term, all shortcuts will be configurable.

@otykier otykier added the feature: enhancement Request is a enchacement to existing feature label Feb 7, 2022
@Rasenkantenstein
Copy link

Rasenkantenstein commented Feb 8, 2022

Adding to that feature i'd also suggest to implement other shortcutes from the Microsoft Universe:
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

  • Alt + Arrow Up and down -> easily shuffle the columns in quries
  • Ctrl+Shift+K -> remove line

@otykier
Copy link
Collaborator

otykier commented Feb 11, 2022

Next update (3.2.2) will add Ctrl+Shift+K and Ctrl+Shift+U for commenting/uncommenting respectively.

@Rasenkantenstein note that today, the following shortcuts already exist:

  • Ctrl+T: Transpose line (i.e. swap current line with line above)
  • Ctrl+L: Delete current line
  • Ctrl+D: Duplicate current line

@otykier
Copy link
Collaborator

otykier commented Feb 11, 2022

@yu-eyerus note that you can already toggle line comments today using Ctrl+/

@otykier otykier added this to the 3.2.2 milestone Feb 11, 2022
@otykier
Copy link
Collaborator

otykier commented Feb 17, 2022

In addition to the shortcuts mentioned above, we now also have the following shortcuts in 3.2.2:

  • Ctrl+Shift+K: Comment selected lines
  • Ctrl+Shift+U: Uncomment selected lines
  • Alt+Up Arrow: Move selected lines up
  • Alt+Down Arrow: Move selected lines down

Shortcut customizations will be available in a later release.

@otykier otykier closed this as completed Feb 17, 2022
@otykier
Copy link
Collaborator

otykier commented Feb 17, 2022

By the way, we've added an overview of all current keyboard shortcuts in TE3 here.

@yu-eyerus
Copy link

@otykier The ctrl+/ shortcut doesn't toggle comments for me in v3.2.2. It has the same behaviour as ctrl+left arrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: enhancement Request is a enchacement to existing feature
Development

No branches or pull requests

4 participants