jsnee / vscode-editor-macros Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code extension that provides a lightweight solution to VSCode's lack of custom macros
License: GNU General Public License v3.0
Visual Studio Code extension that provides a lightweight solution to VSCode's lack of custom macros
License: GNU General Public License v3.0
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.
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'},"
}
},
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!
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.