A Pen by Mihovil Ilakovac on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"scopes": [ | |
{ | |
// js and vue - require("") | |
"scope": "source\\.[js|vue].*string", // 1. ignore if scope at cursor does not match expression (super+alt+p) | |
"prefix": ["require"], // 2. trigger only if: require(<cursor> | |
// if 1 & 2 are true: | |
"auto": true, // auto suggest filepaths, else only by shorctut | |
"extensions": ["js", "vue"], // show only .js and .vue files | |
"relative": true, // insert absolute |
NewerOlder