Skip to main content
exhibitorm99666455
Inspiring
Jul 24, 2019 8:35 PM UTC
Answered

Need to create custom keyboard shortcut for snippet

The previous versions of Dreamweaver allowed me to create a custom snippet, then assign a keyboard shortcut to it so I could insert it into my code on the fly. How can I do this in 2019?

This topic is closed to new replies. Start a new post to keep the conversation going.
Jon Fritz
Jon FritzCorrect answer
Community Expert
Jul 24, 2019 9:18 PM UTC

There is no way to add shortcut key strokes, like Ctrl + Alt + Letter, to Snippets in the last few versions of DW. These days, Snippets get Emmet-like abbreviations that are then expanded using the Tab key. The last version I know for sure that still has standard keyboard shortcuts is CC2015, which is no longer available via the CC Desktop App.

You can still get it from ProDesignTools.com though. Their site uses Adobe's actual files for the download, so they're at least legitimate versions of the program. You just need to make sure to follow the directions exactly, otherwise you get a 403 Forbidden error.

11 replies

Participating Frequently
Jul 10, 2022 10:16 PM UTC

There is a software call `lintalist` that can do this => https://github.com/lintalist/lintalist .

And there is a Post talks briefly about how to use it https://www.autohotkey.com/boards/viewtopic.php?f=76&t=85098 

 

The key is to use the `^|` to specify your caret position in your snippet.

And `[[Selected]]` to insert the text you have selected (for wrapping around).

A sample code could be:

<span class="AAA">^|[[Selected]]</span>

 

Translate
Nancy OShea
Community Expert
Community Expert
Jul 24, 2019 9:03 PM UTC

From the Snippets Panel, click on any snippet and Edit it.   Where it says Trigger Key, add your keyboard shortcut.  The key + TAB will insert your snippet.  Hit OK.  Repeat for other snippets.

Translate
Nancy O'Shea— Product User & Community Expert
exhibitorm99666455
Inspiring
Jul 24, 2019 9:10 PM UTC

Trigger Keys are not the same as shortcut keys, as they predetermine the shortcut, which is not ideal.

Shortcut keys utilize a more natural approach – i.e. Ctrl + B = bold.

I need custom shortcut key configurations for my coding.

Translate
Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
Jul 24, 2019 9:18 PM UTC

There is no way to add shortcut key strokes, like Ctrl + Alt + Letter, to Snippets in the last few versions of DW. These days, Snippets get Emmet-like abbreviations that are then expanded using the Tab key. The last version I know for sure that still has standard keyboard shortcuts is CC2015, which is no longer available via the CC Desktop App.

You can still get it from ProDesignTools.com though. Their site uses Adobe's actual files for the download, so they're at least legitimate versions of the program. You just need to make sure to follow the directions exactly, otherwise you get a 403 Forbidden error.

Translate