News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

codeblocks full reset

Started by bekabo, June 03, 2020, 02:05:21 AM

Previous topic - Next topic

bekabo

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

sodev

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:

void foo()|

ENTER

void foo()
|

BRACE_OPEN

void foo()
{
   |
}


To achive the same on same line the flow is like that:

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.

oBFusCATed

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!]

bekabo

Quote from: sodev 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:

void foo()|

ENTER

void foo()
|

BRACE_OPEN

void foo()
{
   |
}


To achive the same on same line the flow is like that:

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

oBFusCATed

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!]