Skip to content

Commit 5df0548

Browse files
committed
Moving extras scripts out of root folder
1 parent f05807a commit 5df0548

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

examples_formatter.conf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This configuration file contains a selection of the available options provided by the formatting tool "Artistic Style"
2+
# http://astyle.sourceforge.net/astyle.html
3+
#
4+
# If you wish to change them, don't edit this file.
5+
# Instead, copy it in the same folder of file "preferences.txt" and modify the copy. This way, you won't lose your custom formatter settings when upgrading the IDE
6+
# If you don't know where file preferences.txt is stored, open the IDE, File -> Preferences and you'll find a link
7+
8+
mode=c
9+
10+
# 2 spaces indentation
11+
indent=spaces=2
12+
13+
# also indent macros
14+
indent-preprocessor
15+
16+
# indent classes, switches (and cases), comments starting at column 1
17+
indent-classes
18+
indent-switches
19+
indent-cases
20+
indent-col1-comments
21+
22+
# put a space around operators
23+
pad-oper
24+
25+
# put a space after if/for/while
26+
pad-header
27+
28+
# if you like one-liners, keep them
29+
keep-one-line-statements
30+
31+
style=java
32+
attach-namespaces
33+
attach-classes
34+
attach-inlines
35+
attach-extern-c
36+
indent-modifiers
37+
indent-namespaces
38+
indent-labels
39+
indent-preproc-block
40+
indent-preproc-define
41+
indent-preproc-cond
42+
unpad-paren
43+
add-brackets
44+
remove-comment-prefix
45+

examples_formatter.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# you need to have astyle installed before running this
2+
find examples -name '*.ino' -exec astyle --options=examples_formatter.conf {} \;

0 commit comments

Comments
 (0)