How do I select part of a line of programming code without my mouse moving off the line?

We all have our little annoyances when developing software.

My all time favorite is  the spec of dust inside a computer mouse that often made it wobble just as I was about to click an important OK button and made me click Cancel instead (or the other way around).

Then along came the optical laser mouse and this problem went away.

Now I have only one MAJOR annoyance left: whenever I need to select part of a line programming code with my mouse, it almost always suddenly moves to the next or previous line, selecting something entirely else instead. It's not uncommon for me to have to repeat my mouse-selecting action a dozen times until I get the right bit of code I need to copy and paste somewhere else. This is driving me MAD!

Is there anyone out here with a simple solution?

Thanks!
Keimpe Wiersma
LVL 1
keimpeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

szewkamCommented:
hold SHIFT and press arrow buttons. One letter per press is marked ;).
hold CTRL and press arrow buttons. With press the cursor move per "word"
hold both SHIFT and CONTROL and press arrow buttons, you marked a word per press.
;)
0
szewkamCommented:
try combination of holding SHIFT with arrow buttons (left, right, down, up), END, HOME, PageUp, PageDown :)
0
keimpeAuthor Commented:
Yeah, I know there are keyboard shortcuts, but first they are slow and second you have to move your hand from your mouse to the keyboard, which costs time as well.

Isn't there some sort of steadier mouse? Or a parameter in my mouse control software that prevents it from suddenly moving between lines?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

szewkamCommented:
well, there are mouses with programmable keys, maybe you can change properties of these to marked one line of code, but i'm not sure this is possible.
About slowing of keyboard shortcuts - I don't see where they are slow. When I want to select one line, a just move cursor to beggining of this line, click SHIFT+END and I've got it ;).
Moreover, maybe moving hand from mouse to keybord to execute shortcut is a bit slower, but trying to select it only with mouse a few times is much slower ;)
0
keimpeAuthor Commented:
Ah, maybe I haven't expressed myself too well: I'm not looking for ways to select an entire line of code - that's pretty easy with the mouse and/or keyboard, but only a part of the line. You see, I usually build extensive SQL queries in code and then for another query I copy and paste the bits I need from a previous one that looks just like it. So I only need a certain part of a line.
0
szewkamCommented:
ahh, i see. Well, in that case i'm not sure that is the a solution to your problem. I don't now much about hardware, so I don't really know if there is mouse with such programmable keys. Maybe there are mouses where you can temporarily disabled one of the axis, so cursor doesn't jump to another line...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
keimpeAuthor Commented:
That's a brilliant suggestion! (disabling the Y-axis temporarily). Unfortunately, this is probably mouse driver specific and I guess I'm one of the few people in the world that is bothered by the problem I'm describing.

Your suggestion did make me have a closer look at my mouse settings, however, and I found a 'clicklock' property that lets me click the mouse somewhere in the middle of a line and then I can move my mouse left or right without holding the mouse button to select a text. This is not perfect, but certainly a lot better than trying to select text with a mouse button pressed. See picture for what this setting looks like.

If there will not be a definite solution, I'll definitely award you some points for pointing (pun intended) me in the right direction.
clicklock.png
0
szewkamCommented:
if you have non-standard mouse with specific drivers and application to serve it try look there for special options. I don't think Windows provide such usability ;).
If you have non-standard mouse without special drivers look for it on websites, maybe there you find what you looking for :)
0
keimpeAuthor Commented:
Can I accept my own suggestion (ID: 24457840) as solution and split points between my own post and the one (ID: 24457790) by szewkam?
0
keimpeAuthor Commented:
This suggestion put me on the right track to find the answer myself, which I described in the next post. Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Peripherals

From novice to tech pro — start learning today.