Top "Code-formatting" questions

Code formatting is the way to format the source code of programs,using spaces and tabs, improving legibility of source code.

Setting C# formatting options for OmniSharp on Visual Studio Code?

I'm attempting to take advantage of the integration with Visual Studio Code, but can't figure out how to set the …

visual-studio-code code-formatting omnisharp
How can you force StyleCop to ignore a file?

I've included a 3rd party .cs file in my code. It doesn't comply with StyleCop's rules but I desperately need …

c# visual-studio-2010 code-formatting stylecop
How to correctly format PHP 'IF ELSE' statements?

It's been a long running issue that I've come across in many-a-hot-and-steamy coding sessions. One person codes this way another …

php code-formatting readability if-statement semantics
How can I configure Android studio to add new line at end of file?

I use Android Studio and when I commit to a repo on GitHub and view git diff I see a …

android git newline code-formatting
Eclipse multi-line indent uses tabs instead of spaces (pydev)

When I highlight a block of text in Eclipse, and press TAB, it inserts a tab at the head of …

eclipse whitespace pydev code-formatting
Prevent Visual Studio 2015 from removing line continuation characters (_) in VB.NET files

I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax: …

vb.net visual-studio-2015 code-formatting pretty-print line-continuation
Format Ruby code in Vim

Just moving over to Vim at the moment. In TextMate I could format code by hitting Cmd-Alt-[. How do I …

ruby vim code-formatting
Pasting source code in word 2007

If i try to paste source code in word 2007 the spacing between the lines seems to get messed up as …

ms-word code-formatting word-2007
Objective reasons for using spaces instead of tabs for indentation?

Are there objective reasons for using spaces instead of tabs for indenting files as per PSR-2 standard, can someone provide: …

php code-formatting psr-2
How to reformat a Vue.js component in vscode?

I use Visual Studio Code to code a Vue.js component and need to reformat the code of that component. …

vue.js visual-studio-code vue-component code-formatting vetur