vscode-bookmarks icon indicating copy to clipboard operation
vscode-bookmarks copied to clipboard

[FEATURE] - Document keyboard shortcuts in the README

Open brentgti opened this issue 3 years ago • 4 comments

Those less familiar with Visual Studio Code don't know or remember to use ctrl-shift-p to look up Bookmarks commands and see their associated keybindings, but often instead search online. It would help those people to have the keybindings documented in the README.

As an aside, I don't see the keybinding for "jump to next" when I look it up using ctrl-shift-p in Code. I don't know if that's because of something I did. When I go to the settings for that command, I do see the keybinding.

image

brentgti avatar Sep 09 '21 14:09 brentgti

Hi @brentgti ,

Sometime ago I decided to avoid using (and documenting) shortcut keys on my extensions, basically because:

  • Mac uses Cmd instead of Ctrl
  • Conflict with OS native shortcuts (like Ctrl + Shift + L in some Linux distros is used to lock session)
  • Conflict with different keyboard layout
  • VS Code itself and other MS extensions updates and register the same shortcuts

So yes, if you want to know the available shortcuts, you need to open the Command Palette and filter the commands typing Bookmarks.

But, I’m open to PRs. The only difference is that instead of adding the shortcuts in the README file, it should use a similar idea from the VSCode team, which has created a separate documentation for each OS (https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference).

As an aside, I don't see the keybinding for "jump to next"

This is its shortcut definition:


{
    "command": "bookmarks.jumpToNext",
    "key": "ctrl+alt+l",
    "mac": "cmd+alt+l",
    "when": "editorTextFocus"
},

It’s probably conflicting with another extension. Open the Keyboard Shortcut command and look for the shortcut. It should shows you all commands that has this shortcut. If I remember correctly, VS Live Share was one of the extensions that registered the same shortcut keys after a few releases. The Bookmarks extension was released on day one of VS Code 😬 .

Hope this helps

alefragnani avatar Sep 11 '21 18:09 alefragnani

saya belum mengerti peng .gunaan ,akrya malah rusak semua ,total eror

rohmanservice1 avatar Feb 12 '22 15:02 rohmanservice1

Hi @alefragnani , is there any luck to custom the shortcut?

amzar96 avatar Aug 26 '23 17:08 amzar96

Hi @amzar96,

You can customize any keyboard shortcut an extension provides. Simply follow the Official documentation.

Hope this helps

alefragnani avatar Aug 28 '23 15:08 alefragnani