📄 pgjindent
字号:
#!/bin/shtrap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15entab </dev/null >/dev/nullif [ "$?" -ne 0 ]then echo "Go to the src/tools/entab directory and do a 'make' and 'make install'." >&2 echo "This will put the 'entab' command in your path." >&2 echo "Then run $0 again." exit 1fiastyle --version </dev/null >/dev/null 2>&1if [ "$?" -eq 0 ]then echo "You do not appear to have 'astyle' installed on your system." >&2 exit 1fifor FILEdo astyle --style=java -b -p -j -S < "$FILE" >/tmp/$$ 2>/tmp/$$a if [ "$?" -ne 0 -o -s /tmp/$$a ] then echo "$FILE" cat /tmp/$$a fi cat /tmp/$$ | entab -t4 -qc | cat >/tmp/$$a && cat /tmp/$$a >"$FILE"done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -