Prevent VSCode auto format on save from removing final newline
This option has been added since the release 1.8 of November 2016: New editor settings files.insertFinalNewline – automatically add a newline at the end of files when saving.
This option has been added since the release 1.8 of November 2016: New editor settings files.insertFinalNewline – automatically add a newline at the end of files when saving.
I realised I misunderstood the question in my original answer, so have added a partial answer disabling autoformatting for white space. If you select ignore white space on all options where it is offered, it will not reformat the white space of those areas of code. These screen shots are taken from VS2015 Enterprise. I’m … Read more
I think that the thing you are specifically asking about you can achieve by editing your formatter: Window -> Preferences -> Java -> Code Style -> Formatter. There edit you click on Edit… If you are using the default Eclipse formatter you will need to edit the profile name (you cna not edit built in … Read more
If you are here looking for a way to change the order of the symbols list for the breadcrumbs (as I was), you can do that via breadcrumbs.symbolSortOrder setting (in Visual Code > Settings).
[*] Bit of an late answer. But just got the same issue solved… Multiple things are able to control this. It also has taken me quite a bit of experimentation to get it corrected. For me point 3 below was the final trick to make it work. Before that, I noticed the editor loading with … Read more
update: June-22-2018 Thank you @Lorenz@kirill@yuhi for styler package. I have used it for a while. The simplest after installation of the package is to just use scroll to Addin –> style active file Customization options via interface would give some control on styling we prefer. Rstudio can now format code to look neat. Select the … Read more
Since I upgraded to 6.3.2, I use XML Tools. install XML Tools via the Plugin Admin (Plugins → Plugins Admin… Then search for “XML Tools”, check its box and click the “Install” button). use the shortcut Ctrl+Alt+Shift+B (or menu → Plugins → XML Tools → Pretty Print) In older versions: menu → TextFX → HTML … Read more