prantlf / vscode-fold-on-open Goto Github PK
View Code? Open in Web Editor NEWFolds comments or other targets in code files automatically when you open them.
License: MIT License
Folds comments or other targets in code files automatically when you open them.
License: MIT License
I was searching since a long time to, only, fold comments when opening a file.
The majority of addons like Autofold f.i. are folding everything below a given "level" so not really useful to me.
Folding just comment blocks is so great, thanks !
Hi! I'm a computer science professor and I've been using your extension in my classes. I add instructions to the students using:
/* PartA -
which works great! The minor annoyance is that, if I give them commented out code (using single line comments) without putting an extra blank line between them, they will fold as well.
For example:
// int a =5;
// int b = 4;
will fold unless I separate the lines:
// int a =5;
// int b = 4;
Would it be possible to have a "MultilineCommentsOnly" setting? This would make your extension perfect for my use cases!
Thanks! Great job!
Rich.
Quite often source files have a copyright block comment at the top.
It would be great to be able to auto-fold that one (only!).
Which languages does this support?
Doesn't work with c#.
Folding fails for these standard comments, please parse them, or provide regexp to customise them:
/**
multiline
*/
/// rst
/// rst
/// rst
/// rst
/*!
* ... text ...
*/
//!
//!... text ...
//!
/**********************************************
* ... text
***********************************************/
/////////////////////////////////////////////////
/// ... text ...
/////////////////////////////////////////////////
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.