You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write an "if" in languages that use curly braces puting { } in the same opening line, back the cursor 1 and press enter, the closing curly brace will be aligned with the code indentation. Could geany put the closing curly brace aligned with the opening "if" ?
if (true) {}
Position cursor between { and } and press ENTER, results in:
if( true ){
}
The text was updated successfully, but these errors were encountered:
Works for me, be it with current characters or matching brace indentation methods. Note however that auto-indentation here will not happen if you have something on the right of the cursor when typing the closing brace.
What is you version of Geany? Does disabling plugins help? (geany -p) Maybe try a fresh configuration (geany -c /tmp/tempconf)
new information:
if I open the if with the open and close curly braces, could geany put the closing at the correct place? So it is a feature request. Type:
if ( true) {}
Back the cursor 1 char, to be between the curly braces and press ENTER. Result:
if( true ){
}
osergioabreu
changed the title
indentation: curly braces difference js x php (review all languages that use them?)
indentation: position of closing curly brace when typing { } in the opening line
Oct 25, 2023
Desired behavior is:
1- Add an empty line with one indentation
2- Put the } one line below the blank line, at the same direction of IF
3- Back the cursor at the blank line above, at indentation code.
If I write an "if" in languages that use curly braces puting { } in the same opening line, back the cursor 1 and press enter, the closing curly brace will be aligned with the code indentation. Could geany put the closing curly brace aligned with the opening "if" ?
Position cursor between { and } and press ENTER, results in:
The text was updated successfully, but these errors were encountered: