#About The Qt Creator plugin for basic support of D programming language.
The plugin provides some features for comfortable code editing and programming using D language such as code completion, indention, syntax highlighting, etc.
#Features
- Indention
- Syntax highlighting (via QtCreator's Generic Highlighter)
- Code completion (via DCD or Dasted)
- Calltips (via DCD or Dasted)
- Follow symbol (via DCD or Dasted)
- Documentation hints (via DCD or Dasted)
- Outline (via Dasted)
- Symbol locator (via Dasted)
- Context help (via .qch file with ID prepender "D/", can be generated by dlang-qch, for example like Phobos reference)
#TODO
- Class view for project/current document
- Tooltip with symbol information
- Highlight selected symbol in current document
#Installation Build from the sources or download precompiled version from Bintray: project page or downloads directory.
Note: since Travis-CI is used to build binaries for linux and Appveyor -- for windows, build numbers for same revision but different platforms can differ.
Copy the plugin shared library and pluginspec file into local Qt Creator plugin directory:
- $HOME/.local/share/data/QtProject/qtcreator/plugins/$QTCREATOR_VERSION/ on Linux.
- %LOCALAPPDATA%\QtProject\qtcreator\plugins$QTCREATOR_VERSION\ for windows.
- ~/Library/Application Support/QtProject/Qt Creator/plugins/$QTCREATOR_VERSION/ on Mac.
You can also set the plugin directory for Qt Creator using command line argument -pluginpath <dir>
.
Run Qt Creator and enable the plugin on Help -> About Plugins
page. Restart Qt Creator.
#Building
- clone the project.
git submodule update --init
- run
qmake && make
or open dlangeditor.pro in the Qt Creator and build the project from IDE. May be you should set QTC_SOURCE and/or QTC_BUILD variables for qmake for QtCreator's sources and libraries correspondingly. It can be done with the following syntax:qmake "QTC_SOURCE=$MY_QTCREATOR_SOURCE_PATH" "QTC_BUILD=$MY_QTCREATOR_LIB_PATH"
- if successful, the plugin shared library will appear in local plugin directory:
- $HOME/.local/share/data/QtProject/qtcreator/plugins/$QTCREATOR_VERSION/cleem/ on Linux
- %LOCALAPPDATA%\QtProject\qtcreator\plugins$QTCREATOR_VERSION\cleem\
- ~/Library/Application Support/QtProject/Qt Creator/plugins/$QTCREATOR_VERSION/cleem/ on Mac
- on Mac OS X: run
fix_mac.sh $PATH_TO_PLUGIN/libDlangEditor.dylib
to fix rpath constants (mess with Qt libraries and QtC's Qt libraries).
#Build requirements
- Qt >= 5.4.0
- Qt Creator >= 3.3.0 (with sources for plugins building, of course)
#Usage requirements
#Implementation notes Code completion (code model) is supported via DCD (D Completion Daemon by Brian Schott) or Dasted (fork of DCD that is developed specially for this plugin).