Closed luni3359 closed 5 years ago
You can use different when
conditions when assigning keybindings. Example:
"when": "resourceExtname =~ /(.js)|(.vue)$/" // regex that works in .js or .vue files
"when": "resourceExtname == .ts"// works for .ts files
"when": "editorLangId != typescript"// works for all files except .ts
I want to run an attribute sorter automatically on save but it breaks my file when running it on a php file, is there any way to make macros run differently per file type?