Vertical alignment of equal symbols for java class annotations
Answered
Hello, I'm trying to align vertically some things on my code but I wasn't able to align equal symbols for class annotations parameters.
Here's one example, I've the following:
@Model(
adaptables = { SlingHttpServletRequest.class },
adapters = { CompositeImageExporterImpl.class, ComponentExporter.class },
resourceType = CompositeImageExporterImpl.RESOURCE_TYPE,
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
@Exporter(
name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,
extensions = ExporterConstants.SLING_MODEL_EXTENSION
)
@Slf4j
public class CompositeImageExporterImpl implements CompositeImageExporter {
and I would like to have it formatted like this:
@Model(
adaptables = { SlingHttpServletRequest.class },
adapters = { CompositeImageExporterImpl.class, ComponentExporter.class },
resourceType = CompositeImageExporterImpl.RESOURCE_TYPE,
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
@Exporter(
name = ExporterConstants.SLING_MODEL_EXPORTER_NAME,
extensions = ExporterConstants.SLING_MODEL_EXTENSION
)
@Slf4j
public class CompositeImageExporterImpl implements CompositeImageExporter {
How can I achieve this?
Please sign in to leave a comment.
Hi,
There's no way to do it automatically at the moment, but you can vote for the corresponding feature request:
See this article if you are not familiar with YouTrack.