Comments (10)
can code fold them normally? all this extension is doing is calling the fold.level built into the editor.
from vscode-auto-fold.
i feel pretty confident that the cause is code does not like that select being on the far left margin, then from and dual being one space over. the folding system in code seems to be purely based on detecting consistent indenting.
here is an example heredoc i'm using in a production project, and no matter what, code will just never ever fold it right.
from vscode-auto-fold.
Heredoc is inherently messy, it is often better we avoid them. Obviously though, neither of us are.
All we can do is accept that Code cannot fold them properly since Heredoc close /must/ be on the right margin, or just not use them. I personally only use them within the Database migration scripts, never in the main application, because they are so messy.
This is not a problem unique to Code, most editors including Sublime text suffer the same issue. When I folded that method it lost its mind as well, it shows it folded and yet clearly is not.
from vscode-auto-fold.
writing SQL in code is really hard, got so mad at trying to format it well wrote an entire library so i didn't have to write the SQL ;)
from vscode-auto-fold.
Yes, i can see.
Sometimes we cannot avoid Heredoc.
Thank you so much. I can see this plugin is very useful;
PS: Sorry for my English.
from vscode-auto-fold.
If there is a heredoc inside the code, the fold does not working normally. It folds the code, but let heredoc showing.
from vscode-auto-fold.
which language? in php i see that vscode cannot do heredoc at all unless its contents are indented. doesn't even show the little icon to manually fold it without the indent.
from vscode-auto-fold.
PHP.
from vscode-auto-fold.
even trying to fold the entire class makes code lose its mind.
from vscode-auto-fold.
If I have a Heredoc String within my method. Should not It hide the string when I fold method?
from vscode-auto-fold.
Related Issues (19)
- fold recursively in reverse (pack source tree)
- [bug] Randomly folds HOT 11
- [Feature Request] Add configuration to exclude files HOT 2
- Allow configuring multiple fold levels for a file extension
- auto fold not working with python HOT 2
- do not auto-fold if the foldings are remembered by editor
- Problem whith collapse HOT 5
- [Feature Request] Only fold specific regions
- [Feature Request]: Allow Auto-Fold of Block Comments HOT 1
- not folded completely in markdown with list points
- Prevent Comments from Folding.
- auto fold while just moving mouse with cmd pressed HOT 14
- glob syntax in `ext` field of types setting
- Feature Requesr: Fold regions only instead of levels HOT 5
- feature request / autofold types of code per file type HOT 1
- feature request / autofold in files of greater than a specified length HOT 1
- Autofold mess with search HOT 1
- Doesn't work? HOT 2
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-auto-fold.