Preserve my line breaks between attributes
See original GitHub issueHow do i preserve my lineBreaks and format identation ate same time?
I have
public InformacoesGeraisController(
final ConcursoService concursoService,
final CopesePessoaService pessoaService,
final ProgramaService programaService
) {
this.concursoService = concursoService;
this.pessoaService = pessoaService;
this.programaService = programaService;
}
and after format got this
public InformacoesGeraisController(final ConcursoService concursoService, final CopesePessoaService pessoaService,
final ProgramaService programaService) {
this.concursoService = concursoService;
this.pessoaService = pessoaService;
this.programaService = programaService;
}
Its sooo uglyyy
how disable this?
btw, //@formatter:off its not a good option to me
Environment
- Operating System: Windows
- JDK version: 1.8
- Visual Studio Code version: 1.42.0
- Java extension version:
Steps To Reproduce
- CTRL+ALT+F
Current Result
public InformacoesGeraisController(final ConcursoService concursoService, final CopesePessoaService pessoaService,
final ProgramaService programaService) {
Expected Result
Keep line breaks
public InformacoesGeraisController(
final ConcursoService concursoService,
final CopesePessoaService pessoaService,
final ProgramaService programaService
) {
Additional Informations
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
html auto-formatting: preserve my line breaks between ...
VSCode Version: 1.9.0. The new html.format.wrapAttributes settings is nice, but can it be extended with an option to keep "manual" wrapping?
Read more >How to Preserve Newlines, Line Breaks, and Whitespace in ...
Preserve Newlines, Line Breaks, and Whitespace in HTML. Use the white-space: pre; setting to display long-form content containing whitespace and ...
Read more >Adding line breaks between attributes - xml
From what I've read, XSLT is not able to preserve these line breaks as the XSLT processor is not passed such unimportant information....
Read more >Hard Line Breaks | Asciidoctor Docs
To preserve line breaks in all paragraphs throughout your entire document, set the hardbreaks-option document attribute in the document header. Example 3. Line ......
Read more >Get rid of line breaks after class fields with attributes
Is there a way to turn of the line break after the fields with attributes, but keep all the other attribute formatting? Votes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Stwissel could you try to set
@danielschmitz you can set the following property:
See https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings and https://stackoverflow.com/questions/47420149/eclipse-formatting-new-lines-at-each-method-property