8
votes

I just started using Aptana Studio 3.0.1 under Ubuntu 11.04 (64 bit) and I wonder how I can comment lines of code. I already tried to set a shortcut in the preferences->keys menu but it doesn't work. Does anyone have a clue how I can get this work?

6
Maybe the keys you assigned are already linked to another command. That could be why it won't work. - GolezTrol
A already thought about that. Aptana says there are no shortcut conflicts but when I use my assignment a small context menu opens up where I can select "add numbers in line/selection". - mightyplow
Does it work when you select different shortcuts? You may have found a bug. I'd notify Aptana's developers. - GolezTrol
On other shortcuts there's nothing happening. I just thought i was kind of too stupid to adjust the shortcuts. - mightyplow
Well, I can't be sure from here, but let's assume you're not. :D - GolezTrol

6 Answers

5
votes

I don't know how the shortcuts work on the Ubuntu version, but for Windows's Aptana 3.0 you just press Ctrl + / for comment, and uncomment by pressing Ctrl +/ again, just like what smott said.

4
votes

Try:

To comment and uncomment use CTRL + ?

2
votes

I don't have the english keyboard, but maybe you will find this useful. I comment the code by pressing CTRL + SHIFT + 7 and uncomment by pressing that again. SHIFT + 7 produces the / sign.

0
votes

I have eclipse, but the comment shortcut is

CTRL+3 for comment CTRL+\ for uncomment

Again that's my setup. I don't know about yours, and I have never changed mine.

0
votes

Could be, that you have an non-US-Keyboard-layout? Aptana is been known for being buggy when it comes to the support of other-language-keyboards.

0
votes

to comment a block of code use CTRL + SHIFT + /

but the mark (/) should be the one inside SHIFT button