VS Code plugin for OpenJDK development

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu May 12 12:11:26 UTC 2022


On 2022-05-12 13:12, Maurizio Cimadamore wrote:
> Hi Magnus,
> this is great news. While I've been working on IntelliJ support for 
> quite a bit, I was too thinking about VSCode, especially for the 
> ability to work with Java and CPP simultaneously. There's already some 
> support to work on VM code with VsCode. The Java support is missing 
> AFAIK, as well as ability to run and debug jtreg tests, which we have 
> with IntelliJ. But I welcome any initiative to make OpenJDK more 
> accessible to more IDEs!
For pure Java development I still prefer IntelliJ. But due to my role in 
OpenJDK, I mostly change makefiles and shell scripts, and just hacks a 
bit in a Java file or native file here and there,  and then VS Code just 
kicks *ss with the competition. :-) So simple edits to a few Java files 
works well, but the well-integrated code understanding (which underpins 
the set of refactoring options for instance) which is present in 
IntelliJ just isn't there, yet. So I'm not sure how much effort we 
should put into supporting VS Code for serious Java development, since I 
doubt anyone will use it at the moment.

For native code, or when mixing Java and native code, that's another 
question. I do think there are Hotspot engineers using VS code as their 
primary editor. The compile_command.json support was added to benefit 
Hotspot development in VS Code, if I'm not misremembering.

/Magnus
>
> Maurizio
>
> On 12/05/2022 11:50, Magnus Ihse Bursie wrote:
>> Hi all,
>>
>> I've been using Visual Studio Code for most of my OpenJDK development 
>> needs for quite some time now, and grown very fond of it. A year ago 
>> or so, I wrote a plugin to support me in my daily tasks. It is 
>> available here:
>>
>> https://marketplace.visualstudio.com/items?itemName=magicus.openjdk-devel 
>>
>>
>> After a year of testing, I think it has proven its worth (to me, at 
>> least), and I feel ready to recommend it to my fellow developers. The 
>> plugin currently gives you a separate view with Github integration, 
>> showing your notifications for OpenJDK projects, your personal PRs, 
>> and open PRs for a set of chosen tags (i.e. areas you want to watch).
>>
>> My initial idea was to add support for JBS integration as well, but 
>> that part is stalled until our Jira instance gets proper support for 
>> access tokens. :-(
>>
>> If you have suggestions or improvements, feel free to open an issue 
>> or PR here:
>> https://github.com/magicus/vscode-openjdk-devel
>>
>> /Magnus



More information about the ide-support-dev mailing list