Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » using editor temples do not indent proberly
using editor temples do not indent proberly [message #1785188] Tue, 10 April 2018 12:33 Go to next message
Rasmus Kjeldmand is currently offline Rasmus KjeldmandFriend
Messages: 1
Registered: April 2018
Junior Member
I am using editor templates plus ctrl + space, but placing the template is with form indent according to start of the command.

ex.
somefunction()
{
    do // ctrl + space will do
{
    // start of code
} while();
}

// but would Like it to do (and has been working before)

somefunction()
{
    do // ctrl + space will do
    {
        //start of code
    } while();

}

Re: using editor temples do not indent proberly [message #1785252 is a reply to message #1785188] Wed, 11 April 2018 14:52 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Works OK in CDT 9.4.3
If it worked before but now doesn't then examine what you've done recently.

Verify : Window --> Preferences --> Editor --> Typing --> Adjust Indentation is checked.
Also: Window --> Preferences --> Editor --> Typing --> Tab Key adjusts ... current line
And: Window --> Preferences --> Editor --> Typing --> Newlines and braces

Other than that, your guess is as good as mine.


Previous Topic:CommandFactory_6_8 not in same package as Super class in dsf-gdb
Next Topic:Breakpoint not getting hit
Goto Forum:
  


Current Time: Fri Apr 26 08:22:03 GMT 2024

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

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

Back to the top