Giter Site home page Giter Site logo

prantlf / vscode-fold-on-open Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 72 KB

Folds comments or other targets in code files automatically when you open them.

License: MIT License

JavaScript 100.00%
fold fold-comments comments vscode vscode-extension

vscode-fold-on-open's Issues

Very nice ! thanks

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 !

Great Extension! Can we have a setting to only fold multi-line comments? /* */

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 -

  • blah blah blah
  • /

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.

Fold doxygen comments too

Folding fails for these standard comments, please parse them, or provide regexp to customise them:

/**
multiline
 */ 

/// rst
/// rst
/// rst
/// rst
/*!
* ... text ...
*/
//!
//!... text ...
//!
/**********************************************
*  ... text
***********************************************/
/////////////////////////////////////////////////
/// ... text ...
/////////////////////////////////////////////////

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.