apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 841 forks source link

Add a keymap for VS Code #6458

Open anthonyvdotbe opened 11 months ago

anthonyvdotbe commented 11 months ago

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

mbien commented 11 months ago

added https://github.com/apache/netbeans/labels/Contribution%20welcome + https://github.com/apache/netbeans/labels/good%20first%20issue labels

rothardo commented 10 months ago

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

mbien commented 10 months ago

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.

rothardo commented 10 months ago

@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?

rothardo commented 8 months ago

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.xmlfile 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?

mbien commented 8 months ago

@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.

rothardo commented 1 week ago

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!

rothardo commented 1 week ago

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