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
Hi,
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: 14665
Registered: July 2009
Senior Member
Hi,

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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:xtext noobie doubt
Next Topic:Headless ANT build
Goto Forum:
  


Current Time: Tue Apr 23 17:02:00 GMT 2024

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

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

Back to the top