It is currently Sun May 26, 2013 5:41 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Ctrl+B and Alt+B faulty if cursor is at column 1
PostPosted: Sun May 24, 2009 11:57 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Oct 15, 2006 8:56 pm
Posts: 1040
Location: Germany
Hello!

The IDE fails, if the cursor stands at column 1 and you press the specified shortcut to (un)comment a single code line.
Instead, the LF of the previous line is being selected.

Tested on Windows and Linux (via VNC) with the 4.30 x86 IDE.

_________________
PB 4.30
Code:
onErrorGoto(?Fred)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 12:52 am 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4835
Location: Germany
interesting, I never tried this.

Ctrl-B / Alt-B is for (un)commending marked Lines.
you can use it for a single line when you mark a single line, but it's quicker to just press the [;]

some harmless false behaviour if you use it the wrong way is ... tolerable.
it does not even mess up your code, so no worry, I think.

_________________
oh... and have a nice day.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 1:06 am 
Offline
Addict
Addict
User avatar

Joined: Sun Oct 15, 2006 8:56 pm
Posts: 1040
Location: Germany
I discovered this by accident.
Yes, this bug is harmless, but bug is bug. :wink:

> when you mark a single line
No. I used this from the beginning on, and this even works, if the cursor stands somewhere in the middle of a line with no text selected. If you then press Ctrl+B, the whole line gets commented.
So does the IDE, if the cursor stands at the end of a line (last column).
As it works without selected text, it would be nice if this behaviour would be more consistent.

> it's quicker to just press the [;]
Errrr... No. Of course, it depends on the certain situation, but I have the situation that I click here and there with the mouse in the right hand and comment/uncomment single lines of code with Ctrl/Alt+B to debug my code. So leaving the mouse to use both hands to press this combo would consume incredibly 1 second more time! :P

_________________
PB 4.30
Code:
onErrorGoto(?Fred)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 1:19 am 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4835
Location: Germany
didn't know it works for single unmarked lines when the cursor is anywhere else than row1... thnx for the tip.

I got one tip for you:
learn pressing shift- or ctrl- combinations with left hand on the right keyboard side.
use thumb or index finger for for right ctrl or right shift, and ring finger or little finger for the key you want. ;)

I play games using mouse, and switch the music with ctrl-M quite often...

_________________
oh... and have a nice day.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 19, 2009 4:50 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Oct 06, 2006 4:41 am
Posts: 320
Location: Canada
Kaeru Gaman wrote:
[...] pressing shift- or ctrl- combinations with left hand on the right keyboard side.
use thumb or index finger for for right ctrl or right shift, and ring finger or little finger for the key you want. ;)
...

So, Kaeru Gaman is made of dough and rubber ?
Ah! I thought so.
You couldn't fool me forever, you know.

_________________
"That's not a bug..." said the programmer. "...It's a feature! "
"Oh! I see..." replied the blind man.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye