Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ayyll/format_code

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why And What?

It is a code formatting script,and you may confuse that why I don't use like astyle,this kind of existing script.In fact,I used it but it didn't work.So I write a script by pyton to satisfy some special needs of me.

Power

Now it has the following two functions:

  1. replace Tab with four spaces
  2. change parenthesis style

about the second function,such as:

if()
{
	//do something
}
else
{
	//do something
}

for()
{
	//do something
}

and we can change to the unix styte:

if() {
	//do something
} else {
	//do something
}

for() {
	//do something
}

Use

Put the exe file in your work directory,and run it,this will format the files with suffix .c .h in your work directory,just enjoy it~

About

一个代码格式化脚本。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.