geddski / macros

macros support for VS Code
MIT License
165 stars 36 forks source link

Feature Request: if / then, window chrome access, execute javascript? #64

Open mapsedge opened 2 years ago

mapsedge commented 2 years ago

Specific use case:

if ( window_title.indexOf ( '.php') !== -1 ) type 'print_r'

if ( window_title.indexOf ( '.js') !== -1 ) type 'console.log'

The benefit would be that one keyboard shortcut could work across multiple file types.

Really happy to find this extension regardless!