Skip to content

Add a keymap for VS Code #6458

Open

Description

@anthonyvdotbe

Description

As the title says

Use case/motivation

VS Code is my primary IDE, so I'd like to be able to use the same shortcuts in NetBeans.
In general I think most Java developers will start with either IntelliJ IDEA or VS Code, so if NetBeans wants to attract new users, it should offer them a smooth transition. There's already a keymap for IntelliJ IDEA, but not yet for VS Code.

Related issues

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!
    and removed
    needs:triageRequires attention from one of the committers
    on Sep 20, 2023
  2. mbien commented on Sep 20, 2023

    @mbien
    Member

    added Contribution welcome An issue or feature not currently being worked on, but a contribution would be welcomed! + good first issue labels

  3. ashwintemkar commented on Oct 28, 2023

    @ashwintemkar
    Contributor

    I am willing to work on this @mbien I would like to be asssigned to this, may I know the module responsible for this?

  4. mbien commented on Oct 28, 2023

    @mbien
    Member

    a starting point would be to take a look at the eclipse or intellij keybindings which are here:
    https://github.com/apache/netbeans/blob/master/ide/defaults/src/org/netbeans/modules/defaults/Eclipse-keybindings.xml#L24
    and
    https://github.com/apache/netbeans/blob/master/java/java.editor/src/org/netbeans/modules/java/editor/resources/eclipse-global-keymap.xml#L30

    We don't really assign issues, you can simply start working on something and open a PR if you have any results.

  5. ashwintemkar commented on Nov 3, 2023

    @ashwintemkar
    Contributor

    @mbien I would like to inform you that i have started working on the same, I hope as I am new to open source you would be there wherever I will need help, thank you for the opportunity.
    and is there any other way i can join the community or a text based app to stay connected in case of doubts?

  6. ashwintemkar commented on Dec 7, 2023

    @ashwintemkar
    Contributor

    I have created a keybinding xml file named VsCode-keybindings.xml

    keybinds

    and added a profile Keymaps/Vscode=VsCode in Bundle.properties
    profilename

    an in mf-layer.xml file
    in Keybindings folder tag
    I added

    <folder name="VsCode">
                    <folder name="Defaults">
                        <file name="org-netbeans-modules-defaults-keybindings.xml" url="VsCode-keybindings.xml"/>
                    </folder>
                </folder>
    

    binds

    but I am not able to understand
    the keymaps foldering and how the ... stringvalue="Actions/Tools/org-netbeans-modules-jumpto-file-FileSearchAction.instance"/> works
    I am stuck here though I have added a keymap folder named VsCode

    code

    I don't get how to proceed with this may I get some help?

  7. mbien commented on Dec 7, 2023

    @mbien
    Member

    @rothardo this looks correct to me so far - feel free to open a draft PR even if it is not finished. It is easier to comment on code there.

  8. ashwintemkar commented on Aug 17, 2024

    @ashwintemkar
    Contributor

    Hi @mbien ,

    I have opened a draft PR to address the issue of migrating VSCode keybindings to NetBeans. I would greatly appreciate your assistance or a referral to a contributor who has in-depth knowledge of this area.

    Thank you!

  9. linked a pull request that will close this issueAdded a keymap for VS Code #7682on Aug 18, 2024
  10. ashwintemkar commented on Aug 19, 2024

    @ashwintemkar
    Contributor

    Hi there, can anyone tell me how to proceed with this? this is the Draft PR for the same, I am close to the solution but it would be better to get guidance for someone who has previous experience in this area

  11. Stuaarts commented on Aug 31, 2026

    @Stuaarts

    Hi, I'd like to work on this issue as my first contribution. Is it still available ? If so, Could you please assign the issue to me? Thank you !

  12. mbien commented on Aug 31, 2026

    @mbien
    Member

    @Stuaarts yes this is still open and hasn't been implemented yet. Feel free to try it and open a draft PR if you think it is working.

  13. king-407 commented on Sep 10, 2026

    @king-407

    Hi, I opened a draft PR for this issue here: #9608

    The PR adds a Visual Studio Code keymap profile using the existing NetBeans keymap infrastructure, including common editor, navigation, search, project, terminal, and debugging shortcuts.

    It also adds macOS-specific keybinding overrides so the profile follows platform conventions on Mac.

    Happy to adjust the shortcut set or scope based on any feedback.

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

Metadata

Metadata

Assignees

Labels

Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!good first issuekind:featureA feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions