New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a setting to prevent extra newline between brackets #34861
Comments
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
Could you please reconsider? This auto-newline bullshit is easily in my top 10 of most infuriating text editor misfeatures. |
|
@ygqygq2 - No, it can't. You have misunderstood my issue. @imax9000 @foreverstupid @tinynow @JuliusPunhal - Thank you for upvoting this issue. It's always nice to know that I'm not the only one! Especially for coming back after three years and still expressing support. As far as I'm aware, there is still no setting within VS Code that handles this. However, for those of you who program in Python (which includes me), the Python Indent extension does have a setting for this! (I just discovered this enhancement today, though it's actually been around for over two years now.) Which I guess means there's still no relief for other programming languages without a corresponding extension; but at least it offers a little hope, and perhaps even a roadmap for those who are motivated enough to take on writing their own extension. |
This option is very useful for LISP user. Why is this issue closed😳 |
Ok I found a setting {
"editor.autoIndent": "keep"
} It's preset by the language extension whether it should add an extra new line. But VS Code can ignore that. |
Pressing Enter while the cursor is between empty brackets results in an extra newline before the closing bracket. For example, using
|
to represent the cursor, if we press Enter herewe get
I'd love a setting which allows me to get this instead:
In case it's not clear, I'm thinking about all kinds of brackets, not just square brackets. Like, whichever ones
editor.autoClosingBrackets
handles.The text was updated successfully, but these errors were encountered: