Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding Shortcuts in Aptana Studio 3.0 to Comment Code [closed]

I can't find any shortcuts for comment my code in Aptana Studio 3.0. I need shortcuts both to comment individual lines and for commenting selected blocks of code.

Some have told me to try to comment with shortcut WIN + / on my Windows OS but that does not appear workable.

like image 916
ValeriiVasin Avatar asked May 11 '11 08:05

ValeriiVasin


People also ask

How do you comment out a shortcut in CSS?

CSS allows only multi-line comments. In Aptana 3 just select a region you would like to comment out and use ctrl + shift + / .

How do I comment out a section in Visual Studio?

If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.


2 Answers

I was having the same problem, looks like the keyboard makes the shortcut Shift-Ctrl-/ and similar ones completely useless (for the slash character) and Aptana does not allow you to change those shortcuts.

I used Ctrl-7 and works for any type of code you are selecting, if you want to un-comment just repeat the command.

like image 90
Ivan Castellanos Avatar answered Oct 03 '22 02:10

Ivan Castellanos


It depends on which language you're writing in (is this CSS, Javascript, HTML?)

For Javascript:

  • Ctrl-/ to add or remove // for a single line of code, or for multiple selected lines.

The standard Java commenting shortcuts are:

  • Ctrl-/ to add/remove // for a single line of code, or for multiple selected lines.
  • Ctrl-shift-/ to add /* */ around selected code.
  • Ctrl-shift-J to add Javadoc comments.

You can always find out shortcuts by hitting Ctrl-shift-l, which will bring up a list of all currently available shortcuts. They will change depending on if you have anything selected, what type of file you're editing, etc. Look for "Add comments", "Toggle block comments", "Toggle JS comments", and so forth.

like image 28
Rob Grant Avatar answered Oct 03 '22 02:10

Rob Grant