Author Topic: codeblocks full reset  (Read 1229 times)

Offline bekabo

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: codeblocks full reset
« Reply #15 on: June 03, 2020, 07:40:28 pm »
the probelm is that it dont put a space between brackets,

what I expect is {
                          lblblblblblbl
}

what happen is { lblblblblblblblbb
}

u see it doesnt put a space between brackets

Offline sodev

  • Regular
  • ***
  • Posts: 392
Re: codeblocks full reset
« Reply #16 on: June 03, 2020, 08:20:50 pm »
The "problem" is that their is a slight different behavior if the brace is on the same line or the next line.

On next line the flow is like that:
Code: [Select]
void foo()|

ENTER

void foo()
|

BRACE_OPEN

void foo()
{
   |
}

To achive the same on same line the flow is like that:
Code: [Select]
void foo() |

BRACE_OPEN

void foo() {|}

ENTER

void foo() {
}|

CURSOR_UP, END

void foo() {|
}

ENTER

void foo() {
   |
}

This happens with the settings Auto indent and Smart indent on, there is no difference if Brace Smart indent is on or off.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Re: codeblocks full reset
« Reply #17 on: June 03, 2020, 08:26:54 pm »
I don't use brace completion, so this is why I might think it is fine. Patches welcome as always :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline bekabo

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: codeblocks full reset
« Reply #18 on: June 03, 2020, 08:48:37 pm »
The "problem" is that their is a slight different behavior if the brace is on the same line or the next line.

On next line the flow is like that:
Code: [Select]
void foo()|

ENTER

void foo()
|

BRACE_OPEN

void foo()
{
   |
}

To achive the same on same line the flow is like that:
Code: [Select]
void foo() |

BRACE_OPEN

void foo() {|}

ENTER

void foo() {
}|

CURSOR_UP, END

void foo() {|
}

ENTER

void foo() {
   |
}

This happens with the settings Auto indent and Smart indent on, there is no difference if Brace Smart indent is on or off.

ty for replaying , last thing I will say before I will close the topic ,

can I change codeblocks behavior so it ccan do that

int main  () {press enter}


int main () {
    random codes
}

with pressing enter only .

                      bekabo out .                              ty = thank you

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Re: codeblocks full reset
« Reply #19 on: June 03, 2020, 11:59:04 pm »
No idea, your request is unintelligible, again.
Why don't you use the | character to mark where your cursor is?
Why don't you use code tags to group the code for your example?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]