This project contains IDE templates for creating OpenFastTrace artifacts faster with IDEs.
These templates configure auto-completion features of your IDE so that you can create artifacts like features, system requirements and design more quickly and safely.
One of the available Markdown Editors for Eclipse that works really well is the built-in Wikitext Editor.
- Download the template export file from
wikitext_editor_templates/templates.xml
in this repository. - In the Eclipse menu choose
Window
→Preferences
- In dialog
Preferences
:- Search for
Templates
- Find the section under
WikiText
- In the
Templates
sub-dialog on the right- Click
Import…
- Pick the downloaded template file
- Click
- Click
Apply and Close
- Search for
When working on a Markdown file with the WikiTextEditor simply type the first few letters of the template (three is usually enough) and hit the auto-complete shortcut (CTRL
+ SPACE BAR
by default).
If there are multiple matches pick the right one from the list.
Fill in one placeholder after the other cycling through them with the TAB key.
The Live Templates work for all products from the JetBrains IDE line.
- Open the Live Templates Export
jetbrains_ide_live_templates/oft_live_templates.xml
from this repository. - Copy the entire XML content to your clipboard.
- Open IntelliJ IDEA / PyCharm / CLion.
- Navigate to
File
→Settings
(on Windows and Linux) orIntelliJ IDEA
→Preferences
(on macOS). - In the Settings/Preferences dialog, select
Editor
→Live Templates
. - Add a template group (Click the
+
or type button or[ALT] + [INS]
) and name it "OpenFastTrace". - Select the newly created template group.
- Paste the clipboard contents into the template group.
Note, that while strictly speaking the file is not valid XML — since it has multiple root elements — this still works fine and is the simplest way to import the templates available.
When working on a Markdown file in IntelliJ IDEA, simply begin typing the first few letters of the template abbreviation (three is usually enough), then press the code completion shortcut (CTRL
+ SPACE
by default).
If there are multiple matches, select the appropriate one from the list.
Fill in one placeholder at a time. You can move to the next placeholder by pressing the TAB
key.
Once you've imported Live Templates in one environment, you can avail these templates in other IntelliJ IDEA environments using the Settings Sync feature. Here are the steps to achieve this:
- After importing the Live Templates, go to
File
→Manage IDE Settings
→Settings Repository…
. - In the
Settings Repository
dialog, enter the URL of your private remote Git repository where you want to store your settings.- If you're doing this for the first time, click on
Overwrite Remote
to push your current settings (including Live Templates) to the remote repository. - If you've already done this before, and you're on a different environment where you want these settings, click on
Overwrite Local
. This updates your local IDE settings with the ones stored in your remote repository.
- If you're doing this for the first time, click on
- Repeat step 2 on any other IntelliJ IDEA environments where you want these Live Templates.
Please ensure your remote repository is kept private as it might contain sensitive IDE settings. This feature is a more advanced feature, make sure you're comfortable with Git's basic concepts.