M
M
MrSayMyName2016-10-13 09:34:03
Programming
MrSayMyName, 2016-10-13 09:34:03

How to quickly change the design of the code of the entire project?

Good afternoon.
There is a project with n-th number of files. You need to quickly change the design of the code, and to be precise: -
indents between operators =, +, - -
indents and hyphens between curly braces
- replace multi-line comments with single-line
ones - add spaces between function and method
arguments - remove spaces before colons
, and so on. ...
How can this be done other than by hand? Maybe there are some resources? Or programs?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2016-10-13
@Taraflex

clang.llvm.org/docs/ClangFormat.html

M
MiiNiPaa, 2016-10-13
@MiiNiPaa

Astyle

D
Dmitry Kovalsky, 2016-10-13
@dmitryKovalskiy

I won’t tell you completely automatic ones, but the studio can also format the current code file itself. Formatting rules can be adjusted in the settings. "Options"->"Text Editor"->C/C++-> "Formatting"

A
abcd0x00, 2016-10-13
@abcd0x00

Maybe there are some resources? Or programs?

There is sed, but you need to know it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question