Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT CEditor typing preferences
CDT CEditor typing preferences [message #230311] Thu, 12 February 2009 20:57 Go to next message
Carl Hagenmaier is currently offline Carl HagenmaierFriend
Messages: 11
Registered: July 2009
Junior Member
In an archive post (msg 14564) Raghavendra described a problem when
CEditor is embedded in a multipage editor. Specifically, when embedded,
if you type '{' followed by CR, the embedded editor does not generate the
closing '}'.

The thread does not have a solution to the problem. The final entry
suggests debugging BracketInserter.verifyKey(), but this method generates
the closing char for '[', '(', '\'', and '\"', but not '{'.

I'm hoping someone knows the solution or at least can point me to where
the closing '}' is generated.
Re: CDT CEditor typing preferences [message #230340 is a reply to message #230311] Fri, 13 February 2009 18:15 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton LeherbauerFriend
Messages: 490
Registered: July 2009
Senior Member
Carl Hagenmaier schrieb:
> In an archive post (msg 14564) Raghavendra described a problem when
> CEditor is embedded in a multipage editor. Specifically, when embedded,
> if you type '{' followed by CR, the embedded editor does not generate
> the closing '}'.
>
> The thread does not have a solution to the problem. The final entry
> suggests debugging BracketInserter.verifyKey(), but this method
> generates the closing char for '[', '(', '\'', and '\"', but not '{'.
>
> I'm hoping someone knows the solution or at least can point me to where
> the closing '}' is generated.
>

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=206301

--
Anton Leherbauer
Wind River CDT Team, Austria
Re: CDT CEditor typing preferences [message #230349 is a reply to message #230340] Fri, 13 February 2009 19:48 Go to previous messageGo to next message
Carl Hagenmaier is currently offline Carl HagenmaierFriend
Messages: 11
Registered: July 2009
Junior Member
Thank you, Anton

As the curly brackets problem also occurs with the Java and JavaScript
editors, can you tell me what you changed to fix the problem in cdt 4.0.2?
Re: CDT CEditor typing preferences [message #230356 is a reply to message #230349] Sat, 14 February 2009 10:48 Go to previous message
Anton Leherbauer is currently offline Anton LeherbauerFriend
Messages: 490
Registered: July 2009
Senior Member
Carl Hagenmaier schrieb:
> Thank you, Anton
>
> As the curly brackets problem also occurs with the Java and JavaScript
> editors, can you tell me what you changed to fix the problem in cdt 4.0.2?
>

Look at CAutoIndentStrategy.computeSmartMode()
Previous Topic:Build All--where is the control
Next Topic:Discovery options
Goto Forum:
  


Current Time: Tue Jul 16 12:32:10 GMT 2024

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

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

Back to the top