Does chrome dev tools have anything similar to sublime text's snippets and tab triggers? -
when i'm writing code in sublime text, have ability create "snippets" can "tabtrigger" code.
for example, if i'm writing js code , want log console, created snippet have type "log" , hit tab. hit tab console.log(); inserted code. google seems have different definition of snippets, , wondering if described functionality available when writing code directly in dev tools source panel?
i did not find tab trigger
ability in chrome way simmulate operation:
using autohotkey
run after installing , , right click autohotkey in taskbar corner -> edit script
add following script files.
#ifwinactive developer tools - ::ml:: sendinput {raw}margin-left:10px; return
write own script above, save , reload script
have fun!
more say:
#ifwinactive
means part applies current window name started developer tools -
.so if want script work, shoul make develop window seperated main chrome window have window name.
::ml::
defines keys trigger, starting ::
means word , can trigger when followed space key or enter key or tab key semicolon key , on. otherwise output margin-left:10px;
once typed ml
.
sendinput
{raw}
can avoid triggerring endless loop. eg. bb -> border-bottom:1px solid #bbb; output ended bb;
, autohotkey auto minimize current window avoid endless loop.
Comments
Post a Comment