Skip to main content
Participant
October 7, 2022
Question

Code snippets trigger shortcut

  • October 7, 2022
  • 2 replies
  • 125 views

Ad Dreamweaver CC 21.3, Win 10
Codesnippets
you can define snippets without wrapping (insert as block) or with wrapping (insert before/ insert after code marked) 

Insert snippet
There are three ways of inserting codesnippets:
mark snippet
--click right - choose "insert" from the menu
--determine a short cut for the snippet like "äää" (This is the fastest way to insert snippets used very often)
type shortcut, press Tab - inserted
--pointing on the arrow at the bottom

Code snippets wrapping code/text
First mark code/text.
When inserting such a wrapping codesnippet by typing shortcut followed by tab code/text disappears and the code is inserted as snippet code, not wrapped.

Any notion why?

Please debug!

Best Regards, Herbert Wagner

This topic has been closed for replies.

2 replies

Jon Fritz
Community Expert
Community Expert
October 10, 2022

Wrapping Snippets were added back to the program shortly after their removal.

However, because Adobe refuses to let the Emmet-like keyword trigger fall to the wayside where it belongs, and use standard keyboard shortcuts like older versions did, wrapping snippets cannot be given keyword shortcuts. As you've found, the keyword simply overwrites the highlighted code.

This is not a bug, but simply the way it works now in newer versions.

It's less useful, but you can still highlight the code and double click the snippet name in the Snippet Window to wrap a code selection.

Nancy OShea
Community Expert
Community Expert
October 7, 2022

As I understand it, the ability to wrap snippets was removed from DW CC in 2017 when Adobe rebuilt DW with the Brackets Code Engine.

 

In code view, place cursor at desired insertion point.  Type trigger key followed by TAB.  Snippet is inserted above the previous code.   Emmet shortcodes work the same way.

 

 

 

 

Nancy O'Shea— Product User & Community Expert