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

Multi Cursor - CMD+D, CMD+K, CMD+D #2356

Open
fasani-tx opened this issue Nov 8, 2024 · 0 comments
Open

Multi Cursor - CMD+D, CMD+K, CMD+D #2356

fasani-tx opened this issue Nov 8, 2024 · 0 comments

Comments

@fasani-tx
Copy link

Maybe this helps some one else.

It seems one issue with cursor is that it breaks multi-cursor selection (not sure if that is meant to be a weird inside cursor joke) but yes CMD+D, CMD+D, CMD+D, CMD+K, CMD+D the skip selection K command activates the AI popup, if you are a productive person you likely know about and use multi-cursor often (if you know, you know).

You can put it in your custom keybindings.json config. You can press CMD+SHIFT+P search for >key json and you will find the Open Keyboard Shortcuts option do not modify the Default one.

This rebinds cursor’s AI popup to CTRL+K and it brings back the multi-cursor CMD+D, CMD+K functionality.

  [{
    "key": "ctrl+k",
    "command": "aipopup.action.modal.generate",
    "when": "editorFocus && !composerBarIsVisible && !composerControlPanelIsVisible"
  },
  {
    "key": "cmd+k",
    "command": "-aipopup.action.modal.generate",
    "when": "editorFocus && !composerBarIsVisible && !composerControlPanelIsVisible"
  },
  {
    "key": "cmd+d",
    "command": "editor.action.addSelectionToNextFindMatch",
    "when": "editorFocus"
  },
  {
    "key": "cmd+k cmd+d",
    "command": "editor.action.moveSelectionToNextFindMatch",
    "when": "editorFocus"
  }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant