Giter Club home page Giter Club logo

Comments (5)

aeschli avatar aeschli commented on June 29, 2024

#3352 captures the request to have closing bracket in the folded region.

There's currently no plan to work on such a feature.

from vscode.

Sensuikan-U511 avatar Sensuikan-U511 commented on June 29, 2024

I think my request was misunderstood for a different, commonly-asked request. I was not requesting closing brackets captured in folding region. You are correct that this is already handled by an extension, which I mentioned in my request.

from vscode.

aeschli avatar aeschli commented on June 29, 2024

You want the folding marker to be with the function identifier, not on the opening bracket.
That decision is made by the language extension that you use. In your case C#?
e.g. for TypeScript, there the folding marker stays on the identifier.

Peek 2024-06-05 21-13

You could file a request against the C# extension.

from vscode.

Sensuikan-U511 avatar Sensuikan-U511 commented on June 29, 2024

You want the folding marker to be with the function identifier, not on the opening bracket.

That is exactly correct. I cannot replicate the behaviour captured in your GIF. Even if I write a Typescript snippet, the folding marker stays with the opening bracket. I tried disabling extensions as well to make sure nothing I had was interfering with the default behaviour.

2024-06-06 14_53_36
2024-06-06 14_53_41

Is the behaviour in the GIF the result of a Typescript-specific extension? I notice, also, that in the GIF the opening bracket is hidden when collapsed, while when I attempted to try this without extensions only the lines between the brackets are collapsed.

from vscode.

aeschli avatar aeschli commented on June 29, 2024

Thats strange. It's not what I see with TypeScript.
Yes, the language extensions contribute a folding provider that is in full control where the folding ranges start and end.
That said, as a user you can switch to indentation based folding using the setting "editor.foldingStrategy": "indentation".
Maybe that's what you currently use?

from vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.