Comments (5)
#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.
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.
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.
You could file a request against the C# extension.
from vscode.
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.
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.
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)
- explorer overwrites its contents while scrolling a long file list HOT 4
- Git Bash terminal slowed HOT 2
- It skips a line in terminal for no reason HOT 2
- Rename (F2) is not broken HOT 1
- Enabling terminal suggest breaks Windows PowerShell HOT 3
- Feature Request: `<filename>:@<symbol>` Syntax to allow for jumping directly to file and symbol at the same time
- [css] look for variables in all open documents HOT 9
- Node hangs when invoked from a JavaScript Debug Terminal HOT 6
- VS Code Won't Start from WSL After Update HOT 2
- Fira Code Medium not working HOT 1
- Sorry, we're not going to make any changes in the icon sizing / positions. This is how it grew historically.
- Slow Execution of Git commands HOT 4
- Cannot download VS Code on Chromebook
- Unable to stop read aloud in Github copilot chat window HOT 4
- Refactor the virtual model creation logic inside of the moveLinesCommand file
- Built-in terminal is messing up with cursor position HOT 2
- The JS/TS language service crashed 5 times in the last 5 minutes
- Semantic Tokens for TypeScript Template Literal Strings
- Text is rendered behind white boxes in certain menues HOT 2
- [054] potential listener LEAK detected, having 401 listeners already. MOST frequent listener (43):
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode.