Skip to content

shortcut form Source Action #1166

Closed
Closed

Description

@fyeeme

Source Action could not trigger by shortcut, when want to generate getter and setter , is a litter ineffective.

Environment

Version: 1.40.2
Commit: f359dd69833dd8800b54d458f6d37ab7c78df520
Date: 2019-11-25T14:52:45.129Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.0.0

Current Result

image

Expected Result

hope to provider shortcut for it.

Activity

  1. akaroml commented on Nov 29, 2019

    @akaroml
    Contributor

    I requested this capability in vscode repo.

  2. fbricon commented on Dec 10, 2019

    @fbricon
    Collaborator

    As explained in microsoft/vscode#85799 (comment)

    add code in keybindings.json, then works.

        {
            "key": "cmd+.",
            "command": "editor.action.sourceAction",
            "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
        },

    You can choose whatever key you need

  3. akaroml commented on Dec 16, 2019

    @akaroml
    Contributor

    @fbricon we have this idea of providing a keybinding set for frequently used code actions. Do you think vscode-java is the right place to host that?

  4. robstryker commented on Oct 29, 2026

    @robstryker
    Contributor

    Using the ctrl+. shortcut, a menu appears, and Source action... is one of the options. So, this exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions