如何使用程式碼美化器Uncrustify (How to use code beautifier Uncrustify)
轉自:http://www.cnblogs.com/muzizongheng/archive/2013/07/04/3170864.html
1.下載NodePad++,
2.選擇選單Plugins/Plugin Manager/Show Plugin Manager
3.勾選UniversalIndentGUI,點選Install
4.下載uncrustify
5.整合uncrustify到Visual Studio裡:
1)選擇Tools/External Tools...
2) 點選Add,記得勾選Use Output window
Title:uncrustify;
Command:路徑\uncrustify.exe;
Arguments:-c 路徑\你的配置檔案.cfg --no-backup $(ItemPath)
6.利用NodePad++來修改Uncrustify的配置:
1)選擇選單Plugins/UniversalIndentGUI/Show Parameter Settings,開啟Uncrustify的配置介面
2)用NodePad++來開啟一個測試的C++檔案或者C#檔案
3)在UniversalIndentGUI配置裡修改相應引數,選擇選單Plugins/UniversalIndentGUI/Indent text, 檢視測試檔案的程式碼風格是否符合你的要求, 修改相應配置項直到你滿意為止。
4)到NodePad++的安裝目錄C:\Program Files (x86)\Notepad++\plugins\uigui\config,把uncrustify.cfg的內容拷貝到vs裡uncrustify的配置檔案裡。
相關文章
- How to use VS Code to debug Next.js applications All In OneJSAPP
- Quartz叢集增強版_00.How to use?(如何使用)quartz
- 使用 ESLint + Prettier 美化程式碼EsLint
- How to use Qt Designed Ui fileQTUI
- 翻譯|How to Use the useReducer HookuseReducerHook
- 使用htmlprettify美化您的HTML程式碼HTML
- How to Use the Stdin, Stderr, and Stdout Streams in Bash
- How to use “cat” command on “find” command's output?
- React 16.0+ 新特性初探(How to use)React
- 用 Prettier 美化程式碼
- 使用ABAP程式碼生成二維碼(QR Code)
- Linguistics-English-Would, Should, and Could: How to Use Them CorrectlyNGUI
- 如何使用VSCode中的Code Runner外掛執行golang程式碼VSCodeGolang
- UI2Code智慧生成Flutter程式碼——機器生成程式碼UIFlutter
- Prettier美化css/scss/sass程式碼CSS
- table表格美化程式碼例項
- 如何在 VS Code 中除錯 LeetCode 程式碼?除錯LeetCode
- How to update BOL entity property value via ABAP code
- Source Code Reading for Vue 3: How does `hasChanged` work?Vue
- 如何使用 VS Code 開發.NET Core應用程式
- Visual Studio Code好用的微軟程式碼編輯器微軟
- Visual Studio Code:功能強大,易於使用的程式碼編輯器 mac/win版Mac
- 美化滾動條效果程式碼例項
- vue.use()方法從原始碼到使用Vue原始碼
- 使用CSS計數器美化有序列表CSS
- 最詳細版本|UI2Code智慧生成Flutter程式碼——機器生成程式碼UIFlutter
- 小程式如何獲取code
- vs code 新建程式碼片段 路由基礎程式碼路由
- vs code 新建程式碼片段 vue 基礎程式碼Vue
- 使用Visual Studio Code編寫和啟用ABAP程式碼 (上)
- 程式碼整潔之道 clean code
- VS Code除錯C程式碼除錯C程式
- vs code 碼雲 寶塔webhook 自動化部署程式碼到伺服器WebHook伺服器
- 歡迎使用開源的程式碼生成器Code-BuilderUI
- 【實用小技巧】idea程式碼格式美化快捷鍵Idea
- 使用CSS計數器美化數字有序列表CSS
- 平板上敲程式碼code-serverServer
- Clean Code PHP 程式碼簡潔之道PHP
- 微軟程式碼編輯器Visual Studio Code Mac中文設定教程微軟Mac