In emacs, you can run the file using the line:
/* -*- mode: java; c-basic-offset: 4; indent-tabs-mode: nil -*- */
This tells emacs to use 4 spaces for indentation. I like the idea of ββstoring this coding style meta-information directly and explicitly in the source code. Are there any options for this in other IDEs? Does eclipse, in particular, have the ability to customize itself from a string in emacs format or something equivalent?
source share