Setting up Intellisense for Dart

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Setting up Intellisense for Dart

Post by jussij »

To setup the Dart intellisense and class browsing do the following.

Locate this file:

Code: Select all

C:\Users\<your user ID>\AppData\Roaming\Xidicone\xtags\xtags.ini
Add the Dart file extension to the ctags language map as shown below:

Code: Select all

[xTags]
Arguments=--c-types=+fp --excmd=p --fields=+afmikKlnsSz --sort=no --langmap=Java:+.dart
Now assuming the Dart SDK has been installed in this location:

Code: Select all

C:\dart\
1) Start Zeus

2) Use the Workspace, New menu to create a new workspace

3) Type in these details:

Workspace Name: Dart Core
Workspace Directory: C:\dart\dart-sdk\lib


4) Click the Workspace Builder option

5) Type in these details:

File extension: *.dart
Unclick: Create a workspace containing multiple projects


6) Click on the Search option, then click on the Save option, then click on the Close option.

7) Back in the Workspace dialog click on the load option.

This will have created Dart Core tags database.

To bind this to the Dart document type do the following:

1) Use the Options, Document Types menu to edit the Dart document type.

2) In the Tags Database section select the dart core.zdb and add it to the document type.

3) Apply the changes.

To test the above configuration create a new dart file and type in the following code:

Code: Select all

HttpServer.
You should see the intellisense displayed for the HttpServer object.

Cheers Jussi
Post Reply