Is there a "when" condition for VSCode shortcuts?

I’d like to have a shortcut in VSCode only when running a PlatformIO project. VSCode supports conditions with ‘when’ property in keybindings. Is there a value I can use to have a command only for PlatformIO projects?

1 Like