Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to complete code using ctrl-space(Question about how to complete a full string using ctrl-space)
icon9.gif  How to complete code using ctrl-space [message #1265084] Wed, 05 March 2014 18:30 Go to next message
raphael hounsell is currently offline raphael hounsellFriend
Messages: 2
Registered: January 2014
Junior Member
I'm implementing a editor for a specific language and i want to use the code completion feature. After write all my grammar, some tokens doesn't have this feature.
After research everywhere i only found about code proposals, what is making me confuse is the first token have and the others not.

In the examples pressing CTRL-SPACE after write 'H', the word 'HELLO' is completed, in my grammar, i write 'I', press CTRL-SPACE, but the content assist appears with 'IF' and the token is not completed, only if i hit ENTER in 'IF' from the content assist.

What am i doing wrong? It's possible to have every token to get code completion feature just like the examples?

Thanks for the help.
Re: How to complete code using ctrl-space [message #1265127 is a reply to message #1265084] Wed, 05 March 2014 19:14 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member

this depends on your grammar. e.g. if it is ambigous regarding the I......
can you please share a reproducable example

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:xtext noobie doubt
Next Topic:Headless ANT build
Goto Forum:

Current Time: Sun Oct 25 23:40:06 GMT 2020

Powered by FUDForum. Page generated in 0.01705 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top