簡體   English   中英

從命令行調用Eclipse的format選項

[英]Calling format option of Eclipse from command line

我已經通過在Eclipse中為C / C ++進行了自定義格式設置

Window > Preferences > C/C++ > Code Style > Formatter

要在Eclipse中使用它,我在源菜單選項或鍵盤綁定(Ctrl + Shift + F)中使用format選項。

我的問題

我可以從命令行運行此格式選項嗎?

就像從cmd調用Eclipse並將其添加為參數一樣

 C:/> eclipse -format <filename.c>

看看eclipse 文檔,我認為可以這樣調用eclipse:

eclipse -configuration <file_name>

顯然,您必須將所有配置保存在文件中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM