「Dev:Doc/IDE Configuration/Linux CMake Eclipse」の版間の差分

提供: wiki
移動先: 案内検索
(Configure Eclipse)
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 05:48時点における最新版

Starting out

Create Project Files

Create the project files. in your existing cmake build dir run.

 cmake . -G"Eclipse CDT4 - Unix Makefiles"

Import Project

  • Start Eclipse (for the first time)
  • Close Welcome Screen
  • File -> Import -> General -> Existing Project into Workspace
  • Select root Directory (Browse to your CMake build dir)
    ... (acceps defaults), press 'Finish'

Configure Eclipse

Open preferences: (Menu) Window -> Preferences

  • General -> Editors -> Text Editors
    • Enable 'Show Print Margin', set to 120
    • Enable 'Show Line Numbers'
  • General -> Workspace
    • Disable 'Build Automatically'
    • Enable 'Refresh on Access'
  • C/C++
    • Indexer
      • Disable 'Index Source Files not included in the build'
      • Skip Files Larger then '1'mb

(Optional)

  • C/C++
    • Editor
      • Typing
        • Disable all 'Automatically Close' options.

Configure C/C++ Code Style

See: Dev:Doc/CodeStyle/Configuration#Eclipse