Home Download Buy Blog Forum Support

Why the comment command (ctrl+/) does not work in ActionScri

Why the comment command (ctrl+/) does not work in ActionScri

Postby fabricio on Wed Mar 13, 2013 12:36 pm

Why does the comment command ("ctrl+/") does not work in ActionScript syntax?
fabricio
 
Posts: 6
Joined: Wed Mar 13, 2013 12:32 pm

Re: Why the comment command (ctrl+/) does not work in ActionScri

Postby robertcollier4 on Wed Mar 13, 2013 1:14 pm

Because there is no Comment file defined. Create a file Data\Packages\ActionScript\Comments.tmPreferences with following contents:
Code: Select all
<?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.actionscript</string>
   <key>settings</key>
   <dict>
      <key>shellVariables</key>
      <array>
         <dict>
            <key>name</key>
            <string>TM_COMMENT_START</string>
            <key>value</key>
            <string>// </string>
         </dict>
         <dict>
            <key>name</key>
            <string>TM_COMMENT_START_2</string>
            <key>value</key>
            <string>/*</string>
         </dict>
         <dict>
            <key>name</key>
            <string>TM_COMMENT_END_2</string>
            <key>value</key>
            <string>*/</string>
         </dict>
      </array>
   </dict>
   <key>uuid</key>
   <string>FBA964F9-EA31-44D1-A5FD-BB8AB3FF8964</string>
</dict>
</plist>
robertcollier4
 
Posts: 154
Joined: Sun Feb 24, 2013 5:37 pm

Re: Why the comment command (ctrl+/) does not work in ActionScri

Postby fabricio on Wed Mar 13, 2013 1:29 pm

Thank you. The only weird thing is that it is working with ctrl+; instead of ctrl+/
fabricio
 
Posts: 6
Joined: Wed Mar 13, 2013 12:32 pm


Return to Technical Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 37 guests