How to get Emmet working on Dreamweaver
Asked Answered
T

6

8

Emmet now support Dreamweaver and am keen to work with it but it's not working for me, even though I think I have followed instructions here https://github.com/emmetio/dreamweaver

I have already downloaded and installed the extension using Adobe Extension Manager.

One the thing am not sure about is the absolute path to extentions folder that am suppose to put in Commands > Emmet > Emmet Preferences. I have put this in C:\Program Files\Adobe\Adobe Extension Manager CS6

Any help is very much appreciated.

Thanks

Tamaratamarack answered 24/5, 2013 at 9:36 Comment(3)
The best place for asking such questions is project’s Issues: github.com/emmetio/dreamweaver/issues You should describe you problem in detail: you don’t see Emmet menu items? or actions are not working for you?Declassify
Please, see my answer on how to get it to work as other IDEsConvexity
Correcting my early comment: I found a way to get it working in Dreamweaver as it Works in other IDEs, expanding with the TAB key.Convexity
S
12

Got it to work with the Tab. I use DW CS6 in code view to program and was happy to know that it was available for DW. Unfortunately as @Andy says, it doesn't quite work out of the box.

First of all, in DW the Ctrl+E shortcut is used for the "Tag choose" window. The next thing is that Tab doesn't work out of the box like it does with other IDE's.

After a little experimentation focused on making the Tab key work for expanding the abbreviation I did this:

I wrote the word Tab somewhere and I copied it to my clipboard, went to the Edit > Keyboard Shortcuts > Commands > Emmet > Expand Abbreviation preference and I right clicked in the "Press key:" field at the bottom and pasted the word Tab in there, then I clicked on Change and then OK and now my Tab works to Expand Abbreviation.

Lot of people might find it as a big down side that now the Tab key won't really tab anymore, but I think it's ok for me because I like to use Double Space indentation and I don't use the Tab because different IDE's read it with more or less spaces so the code sometimes gets a little crooked when saved from IDE to IDE.

Last but not least... I also tried doing the ASCII code for the Tab which is actually 	 but that didn't seem to work.

Hope this answer is also helpful for anyone who wants to use the Tab and doesn't mind that it will only work to Expand Abbreviation.

Souter answered 16/8, 2013 at 2:18 Comment(1)
Thanks for your contribution. Very useful tip on how to get it to work with the tab key, which am using now.Tamaratamarack
M
4

Create a new Keyboard Shortcut set for Emmet

By default, the Ctrl+E shortcut is set up for Dreamweaver's Tag Chooser, which supercedes Emmet's Ctrl+E shortcut. We'll fix this by removing the keyboard shortcut for the Tag Chooser.

  1. Go to Edit > Keyboard Shortcuts…
  2. Under Current set, choose Dreamweaver Standard (selected by default if you haven't changed it) or another preferred set.
  3. Click on the Duplicate set button on the right. (You can't simply edit the default set).
  4. Rename the set. (ex. "Dreamweaver for Emmet")
  5. In the Commands window, go to Insert > Tag…
  6. Remove Ctrl+E from the Shortcuts window by clicking the - button.
  7. Click OK.

Now the Ctrl+E keyboard shortcut is freed up to work for Emmet's Expand Abbreviation command.

If desired, you may also change the shortcut for Expand Abbreviation:

In the Keyboard Shortcuts edit window, with your newly created set selected, navigate to Commands > Emmet > Expand Abbreviation. Press the key combination you would like to use.

Alternatively, you can type a key or key combination into a text editor (ex. literally type Tab or Ctrl+E), copy it, then paste it in the Press key text field by right-clicking and choosing paste. If you try to paste with Ctrl+V, it will record Ctrl+V as the shortcut.

Martinelli answered 6/9, 2013 at 14:17 Comment(1)
Great explanation. For me it was much easier, typing-wise, to use F11 for Emmet's Expand Abbreviation. This way I can continue typing without breaking my flow.Shake
A
3

it work for me but with 'ctrl+E' shortcut key.

please , go to edit->keyboard shortcuts , command = menu commands and go to insert->tag you should eliminate this shortcut (with click on minus sign).

now if you press 'ctrl+E' emmet work for you and html tag will be automatically compelete .

Ashtonashtonunderlyne answered 25/5, 2013 at 10:44 Comment(0)
M
1

I'm using a Mac and can not for the life of me find the Emmet folder or extension folder anywhere.

So I created my own and linked absolutely to them without success.

EDIT:

Got it figured out: In Dreamweaver on the Mac you can specify whatever folder you want to create and store your own custom preferences.json file.

E.G. In my case I created a folder called 'extensions' and placed it at the following location: /Applications/Adobe Dreamweaver CS5/Configuration/extensions With this folder I created my own preferences.json and linked to this in Dreamweaver via the menu: Commands > Emmet > Emmet Preferences. Emmet automatically uses these files to override the defaults.

The content of this file is:

{
    "css.valueSeparator": ":"
}
Minos answered 27/8, 2013 at 7:2 Comment(1)
Thanks for sharing your solution.Going to be switching to mac soon so I will need to know this.Tamaratamarack
C
1

To get Emmet "Expand Abbreviation" command to work with Tab in Dreamweaver as in other IDEs:

  1. write down the word "Tab" (no quotes) in any place you can copy the text to your clipboard
  2. copy the text
  3. go to Edit > Keyboard shortcuts
  4. if you haven't a personal preset, press the duplicate button next to the preset name and type in the name of for your preset
  5. on the "Commands" dropdown box, select "Document editing"
  6. scroll the command box until the bottom and select "Expand Abbreviation"
  7. right click on the "Press key" field and choose "Paste" to paste the word "Tab" you've copied (note: do not press any key on this field or your can mess up your shortcuts - if you did, just hit cancel and restart from step 3)
  8. click the "Change" button
  9. click the "OK" button
  10. be happy ;)

Ps.: this configuration allows the use of the Tab key to indent aswell as expand abbreviations.

Convexity answered 27/10, 2013 at 20:25 Comment(0)
C
0

I did install emmet on Dreamweaver CS6 with Windows7.

The path I entered was:

C:\Users\your user name\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\Commands\Emmet

In the example above you have to fill in (your user name)

Once that was done I had to change the Shortcut for emmet expand abbreviation from ctrl+E to ctrl+Q

Once that was done emmet/Dreamweaver worked similar to emmet/Sublime text 2. I still prefer to use the tab key to expand the abbreviation in Sublime, but could not find a way to set that up in Dreamweaver.

Crackerjack answered 13/7, 2013 at 16:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.