Coder Social home page Coder Social logo

vscode-menu-builder's Introduction

VSCode Extension: Menu Builder

Version Installs

Build custom command menus from your settings.json.

Custom Menu

Submenu from previoul menu

Features

Credit for this extension's functionality and API go to @maruruh and Quick Menu Builder!

I wrote this replacement extension for two reasons:

  • Add modern VSCode extension enhancements (like settings.json intellisense)
  • Open Source
    • maruruh/vscode-quick-menu-builder is curretly not public, and I don't like to rely on extensions that I can not make a fork/backup of. (I.e. I don't want the unpublishing of an extension from the VSCode Marketplace to affect me.)

Extension Settings

Example settings.json:

"extension.menuBuilder": [
    {
        "id": "textMenu",
        "items": [
            {
                "label": "To Upper case",
                "command": "editor.action.transformToUppercase"
            },
            {
                "label": "To Lower case",
                "command": "editor.action.transformToLowercase"
            },
            {
                "label": "Comment Line",
                "description": "Switch comment lines",
                "command": "editor.action.commentLine"
            },
            // Note: this opens another menu (much like a submenu)! ๐Ÿ˜Ž
            {
                "label": "Indent Submenu",
                "command": "extension.menuBuilder",
                "args": "indentSubmenu"
            }
        ]
    },
    {
        "id": "indentSubmenu",
        "items": [
            {
                "label": "Indent To Tabs",
                "command": "editor.action.indentationToTabs"
            },
            {
                "label": "Indent To Spaces",
                "command": "editor.action.indentationToSpaces"
            }
        ]
    }
],

And keybindings.json to use the menu:

{
  "key": "ctrl+cmd+t",
  "command": "extension.menuBuilder",
  "args": "textMenu",
  "when": "editorTextFocus"
}

Release Notes

1.0.0

Initial release

vscode-menu-builder's People

Contributors

kylpo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vscode-menu-builder's Issues

GitHub url is a 404

When looking at the Menu Builder extension in VSC or in the Marketplace online, the URL to this GitHub repo results in a 404 not found.

On the marketplace, the link looks like this: https://github.com/github:kylpo/vscode-menu-builder.git
The "github:" bit in the middle is probably the cause.

Other than that, this extension seems to be just what I was looking for (about to try it). :)

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.