http://astyle.sourceforge.net/astyle.html Example to format all .cpp and .h files recursively: astyle --style=allman --recursive /home/user/project/*.cpp /home/user/project/*.h 我照上面下 astyle --style=allman --recursive xxx/*.c 不過為什麼不可以用? 我是Artistic Style 1.21 謝謝
by shihyu - Linux新手园地 - 2009-04-01 10:33:17 阅读(1522) 回复(1)
http://astyle.sourceforge.net/astyle.html Example to format all .cpp and .h files recursively: astyle --style=allman --recursive /home/user/project/*.cpp /home/user/project/*.h 我照上面下 astyle --style=allman --recursive xxx/*.c 不過為什麼不可以用? 我是Artistic Style 1.21 謝謝
from: http://astyle.sourceforge.net Artistic Style 1.19 A Free, Fast and Small Automatic Formatter for C, C++, C#, and Java Source Code by Tal Davidson and Jim Pattee Home Page: http://astyle.sourceforge.net/ Project Page: http://sourceforge.net/projects/astyle/ Artistic Style is a source code indenter, source code formatter, and source code beautifier for the C, C++, C# and Java programming l...
不知道大家都用不用astyle,但是我的出问题了。
今天在Ub下面装了一个,然后在vim里面map:
map
Windows平台下也有好多人都喜欢用SourceInsight编辑C/C++程序,但是SourceInsight没有提供对代码格式化的功能,如果将Artistic Style集成到SourceInsight中,那就可以为它扩展出代码格式化的功能了。 假定astyle.exe的目录是“C:\ArtisticStyle\”,在该目录下有一个“c.opt”文件是用来保存配置的文件。下面简要地介绍下Artistic Style集成到SourceInsight中的方法。 1. 打开你的SourceInsight, 选择菜单“Options-->Custom Comma...
find . -name *.c -exec astyle --style=kr -PS {} \; 請問一下上面命令用法 -exec {} \; 上面兩個是什麼意思? 謝謝
本帖最后由 ____BlueGuy____ 于 2013-06-02 10:51 编辑 真心写的我手都疼啊 ~~ 花了30块买了个 正版的 LuaStudio,功能还是太弱,还是不行 编码速度瞬间降低了 50%,还怎么写代码 ? 我看你们喜欢 Lua 肯定是在装B吧,我就不信连个开发工具都没有,编码还能爽得了 !
astyle -h 帮助内容太多了,太多页了,我想分页看。 $astyle -h 一下子就把帮助文档的内容都输出来了,我想分页看,试了下 $astyle -h | more 不起作用 ,也是 一下子就把帮助文档的内容都输出来了 astyle -h | grep 关键字 也不行.也是 一下子就把帮助文档的内容都输出来了
[code] /** * WINDOWS function to resolve wildcards and recurse into sub directories. * The fileName vector is filled with the path and names of files to process. * * @param directory The path of the directory to be processed. * @param wildcard The wildcard to be processed (e.g. *.cpp). * @param fileName An empty vector which will be filled with the path and names of files to pr...