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
Will it possible for us to automatically indent when we manually input "]", "}", or ")" in an independent row? It would be more convenient for typing codes. For example, when we type:
long long step(int n) {
if (n <= 0) {
return 1;
} else {
return n * step(n-1);
}
}
we expect that one tab will be automatically indented when we type to the first "}" at the third row, and so on.
The text was updated successfully, but these errors were encountered:
So you expect, on typing a closing bracket on an empty/blank line, this bracket should be placed on the same indentation level as corresponding opening bracket line - that sounds okay.
Should a line-break after typing an opening bracket automatically indent one level ?
What should happen to all lines in between these brackets, when closing a bracket?. Leave them untouched?
So you expect, on typing a closing bracket on an empty/blank line, this bracket should be placed on the same indentation level as corresponding opening bracket line - that sounds okay. Should a line-break after typing an opening bracket automatically indent one level ? What should happen to all lines in between these brackets, when closing a bracket?. Leave them untouched?
1.Yes, I would like this to come true.
2.Yes. When we type "long long step(int n) {" then press "ENTER", we are expected to type the following part of code with one level indented.
3. Just leaving parts of code between the opening bracket and the closing bracket untouched is OK.
also an extension:
4. when editing a Python code, automatically replace the "tab" with "4 spaces", while editing others not.
Will it possible for us to automatically indent when we manually input "]", "}", or ")" in an independent row? It would be more convenient for typing codes. For example, when we type:
long long step(int n) {
if (n <= 0) {
return 1;
} else {
return n * step(n-1);
}
}
we expect that one tab will be automatically indented when we type to the first "}" at the third row, and so on.
The text was updated successfully, but these errors were encountered: