Can Eclipse parse and use emacs-style meta information in source code?

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?

+4
source share
1 answer

As far as I know: no, Eclipse Formatter will not be configured when reading emacs instructions in code.

That's why you can find Emacs plugins, such as this one for Ganymede , allowing you to quickly open Emacs files from Eclipse!

alt text
(source: chaosnet.org )

+2
source

Source: https://habr.com/ru/post/1309487/


All Articles