User forums > Help
codeblocks full reset
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:
--- Code: ---void foo()|
ENTER
void foo()
|
BRACE_OPEN
void foo()
{
|
}
--- End code ---
To achive the same on same line the flow is like that:
--- Code: ---void foo() |
BRACE_OPEN
void foo() {|}
ENTER
void foo() {
}|
CURSOR_UP, END
void foo() {|
}
ENTER
void foo() {
|
}
--- End code ---
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 :)
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:
--- Code: ---void foo()|
ENTER
void foo()
|
BRACE_OPEN
void foo()
{
|
}
--- End code ---
To achive the same on same line the flow is like that:
--- Code: ---void foo() |
BRACE_OPEN
void foo() {|}
ENTER
void foo() {
}|
CURSOR_UP, END
void foo() {|
}
ENTER
void foo() {
|
}
--- End code ---
This happens with the settings Auto indent and Smart indent on, there is no difference if Brace Smart indent is on or off.
--- End quote ---
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?
Navigation
[0] Message Index
[*] Previous page
Go to full version