Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

code formatting at build time [closed]

can anyone suggest me a plugin/tool that can perform a code formatting at build time.

like image 849
Chinmay Avatar asked Mar 12 '10 05:03

Chinmay


People also ask

How do I stop Visual Studio from auto formatting?

The solution was to go to 'Tools > Options > Text Editor > Basic > VB Specific' and turn 'Pretty Listing' OFF.

How do I turn off auto format in IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style. Switch to the Formatter tab and enable the Turn formatter on/off with markers in code comments option.

What is code formatting in programming?

Source Code Format means a form of computer program, or any portion thereof, written in a programming language employed by computer programmers that must be compiled or otherwise translated before it can be executed by a computer.

How do I autoformat in IntelliJ?

Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.


2 Answers

The Jalopy Maven Plugin has a jalopy:format mojo that can do that.

like image 111
Pascal Thivent Avatar answered Oct 19 '22 00:10

Pascal Thivent


Assuming for Java, there are many that you can plugin to Eclipse like CheckStyle, Jalopy, Findbugs

These can also run with Ant/Maven as part of the build

like image 1
JoseK Avatar answered Oct 18 '22 22:10

JoseK