Select all and delete trigger

Good snippet desired. Within a text box, selecting all text and deleting it.

/DeletesAllTextTrigger

{code to delete all text within a textbox}

1 Like

bump.

You can create a snippet that activates the key combination to select all and delete.

Something like this:

for mac:

{key:cmd-a}{key:backspace}

for windows or chrome os:

{key:ctrl-a}{key:backspace}

@Peter_Monterubio:

If you want to make it work with both PC and Mac, you can do it this way.

{key:ctrl-a; mac=cmd-a}{key:backspace}

1 Like