macros icon indicating copy to clipboard operation
macros copied to clipboard

command 'macros.commentDown' not found

Open canadaduane opened this issue 7 years ago • 8 comments
trafficstars

I'm using vscode 1.19.0 on Mac OS X. I've added the "macros" key and "commentDown" example macro to my user settings.json file:

image

I've also added example shortcut to my keybindings.json

image

But when I press cmd+ctrl+/ vscode complains with command 'macros.commentDown' not found:

screenshot 2017-12-20 at 11 14 01 pm

Have I configured something incorrectly? I'm expecting it to comment the line, not show the above error.

canadaduane avatar Dec 21 '17 06:12 canadaduane

Same issue here

DennisSchwartz avatar Jan 16 '18 13:01 DennisSchwartz

I had this same issue until I noticed that the "macros" section in settings has a warning on it (the squiggly green underline in your first screen-cap).

This usually means VS Code doesn't know what that setting is - i.e. VSCode isn't loading the extension. In my case, all I had to do was uninstall/reinstall the extension.

It's working for me on both macOS and Ubuntu 16.04.

robertpeteuil avatar Jan 29 '18 00:01 robertpeteuil

I had the exact same issue as well. Restarting Visual Studio Code fixed it.

Amelia-Lopez avatar Jan 31 '18 14:01 Amelia-Lopez

For me, I had to make sure that that the source was User and not Default under Keyboard Settings. That fixed it. Basically, instead of hand-editing the keybindings.json file, I used the GUI to set the binding and it worked.

shadyabhi avatar Oct 22 '18 02:10 shadyabhi

Same problem. The macro autocompletes in the user keybindings gui and will add it correctly to the settings file, but as soon as it's added to the file I get a "Value is not accepted" green squiggly (tried restarting).

opsb avatar May 01 '19 07:05 opsb

Same problem. The macro autocompletes in the user keybindings gui and will add it correctly to the settings file, but as soon as it's added to the file I get a "Value is not accepted" green squiggly (tried restarting).

Hi, this is not exactly the same issue. Hi have what you have : basically, settings.json is accepted (no green underline), the extension SEEMS to be loaded ... but the keybindings.json refuses the command, stating that for "macros.xxxx" "value is not accepted". So keybindings.json is not aware of the macros extensions (altough keybindings UI is, but same conclusion once the settings file is written)

image

aschor avatar Jul 09 '19 10:07 aschor

Same here. I moved my config from one Windows 10 machine to another. Doesn't work on the second machine.

geddski.macros installed and enabled. No obvious issues. Have restarted VS Code multiple times.

geddski.macros

%APPDATA%\Code\User\settings.json %APPDATA%\Code\User\settings.json

%APPDATA%\Code\User\keybindings.json %APPDATA%\Code\User\keybindings.json

There's a squiggle under the keybinding, the tooltip says "Value is not accepted", and the binding doesn't work.

EricTetz avatar Jul 16 '19 19:07 EricTetz

I am having the same trouble but instead of green squiggle I am getting red squiggle. And key definition is not in blue color. I tried reinstalling Macros restarting VS code but it didn't work. I have installed the geddski Macros extension.

image

image

Any suggestions? How to solve this problem?

nagarjunvinukonda avatar Jul 26 '22 16:07 nagarjunvinukonda