To create a duplicate selection and line keyboard shortcut do the following;
For windows 7 Professional:
- In windows explorer go to "C:\Users\USER_NAME\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\Menus"
- Locate the file named: "Menus.xml"
- Make a copy and lock it so you have the original
- Open "Menus.xml" in a text editor such as Notepad++ or open it in Dreamweaver CS6
- Scroll down the file until you find the following code (should be somewhere around line 67; that's where I found it in the original "Menus.xml")
Find this Tag
- Just under this tag copy and paste the codeblock below do not remove the comment:
Be sure to add the code in the (Add "xxx" Here). It won't let me post the code snippet on the forum with out doing this.
Copy from line below
(Add "comment opener" Here)
Concept2FORM Duplicate Selection or Selected Line Keyboard Shortcut
Autor: Ryan Wainwright of Concept2FORM LLC :: 3D Printing and Industrial Design Solutions
website: http://www.concept2form.com
contact: concept2form@gmail.com
(Add "comment closer" Here)
(Add "<" here)shortcut key="Cmd+R" domRequired="false" command="if (dw.getDocumentDOM() != null) dw.getDocumentDOM().source.startOfLine(false); if (dw.getDocumentDOM() != null) dw.getDocumentDOM().source.arrowDown(1, true); if (dw.canClipCopy()) { dw.clipCopy() }; if (dw.getDocumentDOM() != null) dw.getDocumentDOM().source.startOfLine(false); if (dw.getDocumentDOM() != null && dw.canClipPaste()){MM.event.notify('','dw.clipPaste()')}; if (dw.getDocumentDOM() != null) dw.getDocumentDOM().source.arrowUp(1, false);if (dw.getDocumentDOM() != null) dw.getDocumentDOM().source.endOfLine(false)" name="Concept2FORM Duplicate Selection" id="WD_Duplicator_DupLineDown" (Add "/>" Here)
- After pasting the above code block search for "CMD+R" in "Menus.xml" and locate it within the "shortcutlist" tag. The code line will begin with the tag:
- I just commented it out as it is the refresh shortcut for the CSS window. Not necceasry for me.
- Save the "Menus.xml" document
- Close and reopen Dreamweaver
- Open an HTML document and goto source view.
- Now select the code you wish to duplicate and press "CMD+R"
- That should do it.
If you find you have an error, reopen "Menus.xml" and search for other shortcut commands with "CMD+R" and change them as desired.
Took me a while to write and figure this out so if you share it, please leave the comment containing author and web address. Thanks!!
repeat code or repeat html tags? – Austin T French – 2013-09-24T21:29:33.730
Not so convenient, but triple-click, ctrl-C, left arrow, ctrl-V...? – beroe – 2013-09-24T21:58:22.000
@AthomSfere duplicate selected text/code/html etc. – kanarifugl – 2013-09-25T22:27:12.660