alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 163 forks source link

[FEATURE] - please add a shortcut for `Edit Label` #567

Closed hitzhangjie closed 1 year ago

hitzhangjie commented 1 year ago

Please add a shortcut for Edit Label. Add bookmarks is very common, if we need to relabel it conveniently, a shortcut is better.

alefragnani commented 1 year ago

Hi @hitzhangjie ,

The Edit Label command, available in the Side Bar, cannot have shortcuts assigned because it depends on the selected bookmark in the Side Bar.

But, you can assign any shortcut to the Bookmarks: Toggle Labeled command, which will allow you to edit the label of the the bookmark where the cursor is located. Simply use the native Key Bindings feature (https://code.visualstudio.com/docs/getstarted/keybindings) and define any shortcut you want.

Hope this helps.