Giter VIP home page Giter VIP logo

vscode-ext-foldlevel's Introduction

Fold Level

VSCode Market

Additional Fold Commands by One Step Shortcut.

Like PhpStorm: Expand to level | 1, 2, 3, 4 or 5

foldlevel

Usage & Commands

Set shortcuts:

  • Press
    • Mac: Command + Shift + p
    • Win: Ctrl + Shift + p
  • Open Keyboard Shortcuts File
  • Append:
    {
        "key": "alt+1",
        "command": "vikyd.FoldLevel.level1"
    },
    {
        "key": "alt+2",
        "command": "vikyd.FoldLevel.level2"
    },
    {
        "key": "alt+3",
        "command": "vikyd.FoldLevel.level3"
    },
    {
        "key": "alt+4",
        "command": "vikyd.FoldLevel.level4"
    },
    {
        "key": "alt+5",
        "command": "vikyd.FoldLevel.level5"
    },
    {
        "key": "alt+6",
        "command": "vikyd.FoldLevel.level6"
    },
    // ↓  optional
    {
        "key": "alt+-",
        "command": "editor.foldAll"
    },
    // ↓  optional
    {
        "key": "alt+=",
        "command": "editor.unfoldAll"
    }

Thanks

vscode-ext-foldlevel's People

Contributors

bradhenslee avatar dependabot[bot] avatar vikyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

backupforks

vscode-ext-foldlevel's Issues

Fold on open

Can I get this somehow to automatically fold on file open?

Recommended icons for status bar?

I attempted to add these fold levels to my status bar, but there didn't seem to be any good octicons or builtin font characters for it.

So I used "+ ⑶ ⑵ ⑴"

There's some boxy numbered ones but they're super small.

[Feature Request] Always fold comments

It would be nice to have a config option:

"foldLevel.alwaysFoldComments": false           // default `false` for backwards compatibility

If true it would behave like normal, but would always fold block comments (those before functions, e.g. /* ... */ for js, /** ... */ for js / java, // <summary> ... </summary> for c#, etc.)

Very often I find that comments get in the way. I wish they would be folded all the time, regardless of the 1-6 level.


Thanks again for this awesome extension, it makes dealing with large files much easier! 👍

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.