Skip to content

Instantly share code, notes, and snippets.

@dawogfather
Last active March 9, 2016 18:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawogfather/50fb84be983197d0b26f to your computer and use it in GitHub Desktop.
Save dawogfather/50fb84be983197d0b26f to your computer and use it in GitHub Desktop.
To turn on Comment functionality in Java Properties in Sublime Text add this file to the User\Packages\Java folder. Go to Preferences -> Browse Packages in sublime to open the correct place.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>source.java-props</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>FBA964F9-EA31-44D1-A5FD-AE8AB3FF8954</string>
</dict>
</plist>
@OliverJAsh
Copy link

This doesn't work for ST3?

@andykant
Copy link

andykant commented Mar 9, 2016

In ST3, use Preferences -> Browse Packages. Then just make a new folder (I named mine "JavaProperties") and save the file there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment