You can change the preview code in Eclipse formatting

Can I change the preview code used by the Eclipse formatter?

For example, on the Window-> Preferences-> Java-Code Style-> Formatter-> Indentation tab, the following preview code is displayed:

int[] myArray = { 1, 2, 3, 4, 5, 6 }; 

I would like to change it to:

 int[] myNewPreviewArray = { 11, 12, 13, 14, 15, 16 }; 

I would like to add a few cases that are not handled in the default preview code.

+4
source share

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


All Articles