Coder Social home page Coder Social logo

vscode-editor-macros's People

Contributors

dependabot[bot] avatar johnrdorazio avatar jsnee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-editor-macros's Issues

Can't get the extension to run a macro

I have installed the extension.
I edited editormacros in settings.json with the sample from the extension

{
"editormacros": {
"addSemicolon": {
"type": "command",
"args": {
"commands": [
"cursorEnd",
{
"command": "type",
"args": {
"text": ";"
}
}
]
}
}
}
}

So from here I opened a file, placed the cursor, and did shift cmd P to open command pallette
and selected Run a Macro
A blank box came up with no macro to select to run.
I must admit it took a lot of work to find what commands to run.
But then I found in the command pallete List all the commands that can be used in macros.

What am I doing wrong.
Should I see a new macro addSemicolon when I select Run a macro in the command pallete

I really would like to get this going.
Thanks Jim S.

Searching for character classes fails

It appears that character-class escapes like \s and \d, are ignored...

The following example does not match the digits...

    {
        "type": "replace",
        "args": {
            "regex": true,
            "replaceAll": true,
            "multiline": false,
            "searchPattern": "^(\d+)\t(.*)$",
            "replacePattern": "{ 'nr': $1, 'pind': '$2'},"
        }
    },

$1 in replacePattern

Hi, thanks for a very useful VSCode extension. How do I properly escape $1 in replacePattern so that it inserts a bracketed content () from searchPattern? Thanks!

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.