2012年9月19日

A eclipse foding plugin -- Coffee Bytes

Eclipse 程式碼摺疊工具 -- Coffee Bytes

最近才發現Eclipse上面一個好用的程式碼摺疊工具, 
但是很多網站上面的安裝方式已經沒辦法使用, 
剛好有找到可以安裝的方式, 就記錄下來了!


  1. Install plugin
    1. Download the Coffee Bytes Folding plugin
    2. Unpack the downloaded file eclipse-folding-plugin.tar.gz
    3. Copy the contents of the:
      1. features folder => eclipse features folder
      2. plugins folder => eclipse plugins folder
  2. Configure plugin in Eclipse:
    1. Select "Windows->Preferences"
    2. Select "Java->Editor->Folding"
    3. Check the "Enable folding" option
    4. Select "Coffee Bytes Java Folding" in the "Select folding to use:" option
    5. Check "User Defined Regions" in the "General Fold Setting:" option
Download url:
http://code.google.com/p/academic-cloud/downloads/detail?name=eclipse-folding-plugin.tar.gz&can=2&q=


Firstly, you'll need to configure Coffee Bytes Java folding as the folding scheme to use, and then enable User Defined Regions, as shown below.
Enable Coffee Bytes Java folding

Secondly, you'll need to configure the start and end identifiers that will be used to identify the beginning and termination of regions in your code. In this case, I've chosen {{ and }} as it fits well with the Apache Isis templates that I use.
Configure the start and end regions

Finally, I use the same start and end identifiers in my code to demarcate regions and to trigger the Coffee Bytes folding plugin to recognize the same.
Use start and end regions in code


 

參考連結:

http://blog.csdn.net/fight_every_effort/article/details/7908366

 

沒有留言:

張貼留言