Tag Archives: java

LaTeX listings: Eclipse colors

This is the style I use to highlight my Java code in LaTeX documents with the Listings package, with Eclipse colors:

And this is an example of a document, where I show the same listing both with black and white colors an Eclipse colors:

Here’s the result:

Modern Java in LaTeX listings (Java 17)

If you use the LaTeX listings package to typeset Java, you’ve probably noticed that modern Java has moved faster than the package itself. Records, var, and text blocks may not highlight correctly out of the box. The good news: the listings package is extensible so that you can teach it “modern Java” with a tiny […]

Experiments with Copilot Agent: Implementing a Maven plugin

I experimented with Copilot “Agent mode”: I told it to create a Maven plugin. (Let me stress that I already have some experience implementing and testing Maven plugins.) I’ll report my experience, which has been positive in some respects but disappointing in others. I use “Claude 3.5 Sonnet” model because that’s the one used in […]

A first look at Copilot in Eclipse

Microsoft announced the public review of Copilot for Eclipse. I immediately tried that in one of my Java projects. Use the “Market Place” to install Copilot in Eclipse: Once you click install, you must “trust” the contents to be installed: Once installed and restarted Eclipse, you must authenticate with your GitHub Copilot account by clicking […]

Java, Maven and Gitpod, part 5: the Formatter

This is the 5th post about using Java in Gitpod. It assumes you have already read the first, second, third, and fourth posts. We can benefit from automatic formatting. First, select (from F1) the command “View: Toggle Render Whitespaces”. We can see that the Maven archetype generated Java source code with spaces for indentation: I prefer […]

Neovim and Java with LazyVim, part 3: Dependencies and Maven

This is the third part of a few tutorials on Java development with Neovim using the LazyVim setup. This post assumes you already read and applied all the steps of the first part and the second part. You need Java installed (possibly 21), while Maven is optional. I will use this Maven example during the […]

Neovim and Java with LazyVim, part 2: IDE mechanisms

This is the second part of a few tutorials on Java development with Neovim using the LazyVim setup. This post assumes you already read and applied all the steps of the first part. You need Java installed (possibly 21), while Maven is optional. I will use this Maven example during the tutorial: https://github.com/LorenzoBettini/maven-bank-example, part of […]

Neovim and Java with LazyVim, part 1: initial configuration

Updated 16 December 2024 (for Telescope) This is the first part of a few tutorials on Java development with Neovim using the LazyVim setup. I highly recommend LazyVim because it has many cool plugins configured with nice defaults. Moreover, as we see in this tutorial, it lets you quickly have the Java LSP up and […]

My new book on TDD, Build Automation and Continuous Integration

I haven’t been blogging for some time now. I’m getting back to blogging by announcing my new book on TDD (Test-Driven Development), Build Automation and Continuous Integration. The title is indeed, “Test-Driven Development, Build Automation, Continuous Integration (with Java, Eclipse and friends)” and can be bought from https://leanpub.com/tdd-buildautomation-ci. The main goal of the book is […]