Zeus Forum Index Zeus
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configuring the D Language, Phobos-Tango Auto-Completion

 
Post new topic   Reply to topic    Zeus Forum Index -> Tutorials, Tips and Tricks
View previous topic :: View next topic  
Author Message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1938

PostPosted: Tue May 15, 2007 2:48 am    Post subject: Configuring the D Language, Phobos-Tango Auto-Completion Reply with quote

It is very easy to configure the Zeus IDE to auto-completion for the D programming language.

For example, assuming the DMD package is installed in the D:\dmd\ directory, here are the directions to configure auto-completion for the Phobos library.

Step #1: Create a Phobos Tag Database File
  1. Start the Zeus IDE
  2. Select the Tags, Database Builder menu
  3. Enter Phobos as the database name
  4. Enter *.d as the file extensions
  5. Enter D:\dmd\src\phobos as the source file directory
  6. Hit the Search button
  7. Hit the Build button
  8. Hit the Close button

Step #2: Attach the Phobos Tag Database File to the Document Type
  1. With the Zeus IDE running
  2. Select the Options, Document Types menu
  3. Select the D Document Types menu
  4. Change to the Tag Database panel
  5. Select the phobos.zbd item and hit the Add button
  6. Apply the changes

Step #3: Test the Phobos Tag Database File

With the Zeus IDE running open any D file and type in the following code:
Code:
    Socket sock;

    sock.

After entering sock. a list of the Socket methods and data items should be displayed.

Alternatively type in:
Code:
    Sock

and hit the Ctrl + Enter keys and a list of all functions and classes starting with Sock will be displayed.

Finally, by placing the cursor on the word Socket and using the Tags, Find Current Word menu it is also possible to navigate to the definition of the Socket class.

Step #4: Tango Auto-Complete
To add auto-completion for Tango just repeat these steps using the Tango source code.

Naturally the same approach can be used to add auto-completion for any other package for which the source code is available Wink

Related Topics:
Getting the D language debugger to work with Zeus.
Intergrating the D programming language help file.
Intergrating the D programming language Tango help file.
Writing Zeus macros using D scripting module.

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus Forum Index -> Tutorials, Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group