SciTE 縮排 |
|
檔案:wiki_insecure/editors/SciTE/indent.lua
注意:C 編程人員
以上的縮排很不錯,但是我希望在縮排樣式上有多一些選擇。
我安裝了 GNU indent,並將類似以下內容新增到 .SciTEUser.Properties
command.name.13.*=Indent Code command.13.*=indent --line-length 90 -brf -linux "$(FilePath)" ; \ echo "DONE! Press CTRL-R to reload document." command.shortcut.13.*=Alt+Ctrl+Shift+I說明:「Indent 是用來美化 C 程式碼的 GNU 程式,以簡化閱讀。Indent 也能將一種 C 編寫風格轉換為另一種。Indent 了解正確的 C 語法,並設法處理不正確的 C 語法。」
Indent 支援除了 -brf -linux(個人的最愛)之外的數種縮排樣式