2015年1月30日 星期五

自訂程式碼區塊 android studio region、eclipse region like C#

[C#]
#region 標題
some_code();
#endregion



[eclipse]
(N/A)

下載外掛: eclipse-folding-plugin.tar.gz
    ref: http://kosiara87.blogspot.tw/2011/12/how-to-install-coffee-bytes-plugin-in.html
    (可疑!?、停止更新?)

使用方法: 第一個答案
    ref: http://stackoverflow.com/questions/6940199/how-to-use-coffee-bytes-code-folding
    (重啟才有效果)

個人習慣(C# style、並相容於Android Studio)
   {{ 改 region
    }} 改 endregion
   (終於...能用就好,{{ ... }}比較不會跳出奇怪的錯)



[Android Studio]
//region 標題
some_code();
//endregion

快捷鍵: 滑鼠圈選程式碼->ctrl+alt+T->C.region...endregion Comment




沒有留言:

張貼留言