Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
Update: July 26, 2019
This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions on Github.
This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions on Github.
Comment WDL lines with Ctrl+/ in Sublime Text

There is a nice WDL syntax highlighter for Sublime Text described on the WDL web site. However, the highlighter does not provide a shortcut for commenting out a line or block of lines. I found that this works well to implement a commenter using the Ctrl+/ keys.
Create the file $HOME/.config/sublime-text-3/Packages/wdl.tmPreferences
with the following contents:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>name</key> <string>WDL Comment</string> <key>scope</key> <string>source.wdl</string> <key>settings</key> <dict> <key>shellVariables</key> <array> <dict> <key>name</key> <string>TM_COMMENT_START</string> <key>value</key> <string># </string> </dict> </array> </dict> <key>uuid</key> <string>31509f93-e4f4-4a88-8fc6-82ff082e849d</string> </dict> </plist>
Don't worry about the reference to Apple Computer; this works fine on a Red Hat box.
Tagged:
Answers
Thanks for sharing this, @myourshaw.
Great, however, for my macOS system, I put this file under:
~/Library/Application\ Support/Sublime\ Text\ 3/Packages/WDL\ Syntax
Or under the path the package (WDL syntax highlighter) are installed, you can find where it is installed by installing PackageResourceViewer:
https://packagecontrol.io/packages/PackageResourceViewer
And then within Command Palette
right click "Reveal in Finder"