Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21640 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2013-01-24 04:23 -0800 |
| Last post | 2013-01-25 11:29 -0700 |
| Articles | 15 — 9 participants |
Back to article view | Back to comp.lang.java.programmer
ctrl-c ctril-v Roedy Green <see_website@mindprod.com.invalid> - 2013-01-24 04:23 -0800
Re: ctrl-c ctril-v Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-01-24 13:02 +0000
Re: ctrl-c ctril-v Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 09:23 -0500
Re: ctrl-c ctril-v Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-01-24 08:16 -0800
Re: ctrl-c ctril-v Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-24 15:20 -0400
Re: ctrl-c ctril-v Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-01-24 14:11 -0800
Re: ctrl-c ctril-v bob smith <bob@coolfone.comze.com> - 2013-01-24 08:28 -0800
Re: ctrl-c ctril-v "John B. Matthews" <nospam@nospam.invalid> - 2013-01-24 12:10 -0500
Re: ctrl-c ctril-v Jim Janney <jjanney@shell.xmission.com> - 2013-01-24 18:16 -0700
Re: ctrl-c ctril-v Lew <lewbloch@gmail.com> - 2013-01-24 17:18 -0800
Re: ctrl-c ctril-v Jim Janney <jjanney@shell.xmission.com> - 2013-01-24 19:51 -0700
Re: ctrl-c ctril-v Lew <lewbloch@gmail.com> - 2013-01-24 18:59 -0800
Re: ctrl-c ctril-v Arne Vajhøj <arne@vajhoej.dk> - 2013-01-24 22:56 -0500
Re: ctrl-c ctril-v Roedy Green <see_website@mindprod.com.invalid> - 2013-01-25 08:56 -0800
Re: ctrl-c ctril-v Jim Janney <jjanney@shell.xmission.com> - 2013-01-25 11:29 -0700
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-01-24 04:23 -0800 |
| Subject | ctrl-c ctril-v |
| Message-ID | <1q92g8hfr69f0422pq5r81cqqlpfngkotj@4ax.com> |
Is it possible to reconfigure copy paste to some other keystrokes besides ctrl-C ctrl-V either within Java or Windows entirely? They are quite inconveniently placed in a dsk layout. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law
[toc] | [next] | [standalone]
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
|---|---|
| Date | 2013-01-24 13:02 +0000 |
| Message-ID | <slrnkg2c6s.u9l.avl@gamma.logic.tuwien.ac.at> |
| In reply to | #21640 |
Roedy Green <see_website@mindprod.com.invalid> wrote: > Is it possible to reconfigure copy paste to some other keystrokes > besides ctrl-C ctrl-V either within Java or Windows entirely? > They are quite inconveniently placed in a dsk layout. Don't think it is possible... Even if it were, then whatever other letters (with Ctrl) would get the Copy and Paste functionality, they might conflict with some appliation's use for that respective other key. E.g., if you set Copy to Ctrl-J and Paste to Ctrl-K and maybe even Cut to Ctrl-Q, then you may run into problems with apps that use Ctrl-Q,J,K for other stuff.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-01-24 09:23 -0500 |
| Message-ID | <510143ca$0$294$14726298@news.sunsite.dk> |
| In reply to | #21640 |
On 1/24/2013 7:23 AM, Roedy Green wrote: > Is it possible to reconfigure copy paste to some other keystrokes > besides ctrl-C ctrl-V either within Java or Windows entirely? Within a Java GUI it should be easy. It will not be as easy to outside of the Java GUI. And Java will not be the right language to hook into the OS/WM/GUI framework. > They are quite inconveniently placed in a dsk layout. But it is what people expect. Arne
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2013-01-24 08:16 -0800 |
| Message-ID | <l7dMs.55250$On7.43312@newsfe16.iad> |
| In reply to | #21640 |
On 1/24/13 4:23 AM, Roedy Green wrote: > Is it possible to reconfigure copy paste to some other keystrokes > besides ctrl-C ctrl-V either within Java or Windows entirely? > > They are quite inconveniently placed in a dsk layout. > FWIW, on the Mac it is Command-C/V, which is more convenient since Command is a thumb-pressed key, not a pinky-pressed. This is true for most hot keys. The equivalent on a PC would be pressing the Alt key for most hot-keys. Having said that, a lot of applications allow you to remap hot keys, but it is per application. No global solution that I know of. Probably could be done.
[toc] | [prev] | [next] | [standalone]
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Date | 2013-01-24 15:20 -0400 |
| Message-ID | <IPfMs.78365$sm1.76378@newsfe22.iad> |
| In reply to | #21654 |
On 01/24/2013 12:16 PM, Daniel Pitts wrote: > On 1/24/13 4:23 AM, Roedy Green wrote: >> Is it possible to reconfigure copy paste to some other keystrokes >> besides ctrl-C ctrl-V either within Java or Windows entirely? >> >> They are quite inconveniently placed in a dsk layout. >> > FWIW, on the Mac it is Command-C/V, which is more convenient since > Command is a thumb-pressed key, not a pinky-pressed. This is true for > most hot keys. [ SNIP ] I am an extremely fast two-fingered typist...to me it doesn't matter. :-) AHS
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2013-01-24 14:11 -0800 |
| Message-ID | <bkiMs.127675$tG.3937@newsfe15.iad> |
| In reply to | #21659 |
On 1/24/13 11:20 AM, Arved Sandstrom wrote:
> On 01/24/2013 12:16 PM, Daniel Pitts wrote:
>> On 1/24/13 4:23 AM, Roedy Green wrote:
>>> Is it possible to reconfigure copy paste to some other keystrokes
>>> besides ctrl-C ctrl-V either within Java or Windows entirely?
>>>
>>> They are quite inconveniently placed in a dsk layout.
>>>
>> FWIW, on the Mac it is Command-C/V, which is more convenient since
>> Command is a thumb-pressed key, not a pinky-pressed. This is true for
>> most hot keys.
> [ SNIP ]
>
> I am an extremely fast two-fingered typist...to me it doesn't matter. :-)
>
> AHS
>
It's not always about speed. Comfort is part of it as well. I can type
really fast with two fingers (thanks to apple iP{hone,ad,od}). My wrist
gets tired doing so for long stretches.
[toc] | [prev] | [next] | [standalone]
| From | bob smith <bob@coolfone.comze.com> |
|---|---|
| Date | 2013-01-24 08:28 -0800 |
| Message-ID | <b02f27b0-401d-44b1-8cc1-2e7bf383bfc7@googlegroups.com> |
| In reply to | #21640 |
On Thursday, January 24, 2013 6:23:53 AM UTC-6, Roedy Green wrote: > Is it possible to reconfigure copy paste to some other keystrokes > > besides ctrl-C ctrl-V either within Java or Windows entirely? > > > > They are quite inconveniently placed in a dsk layout. > > -- > > Roedy Green Canadian Mind Products http://mindprod.com > > The first 90% of the code accounts for the first 90% of the development time. > > The remaining 10% of the code accounts for the other 90% of the development > > time. > > ~ Tom Cargill Ninety-ninety Law I used to use right-clicking on stuff to Copy/Paste in Windows. Or the menu bar. Or the copy and paste icons. Sometimes if I don't like a hotkey, I'll use a Macro program, and I'll tell it to generate the Control C keystroke if I hit F12 or something. There's a program called AutoHotkey for Windows that might do that.
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-01-24 12:10 -0500 |
| Message-ID | <nospam-160308.12105524012013@news.aioe.org> |
| In reply to | #21640 |
In article <1q92g8hfr69f0422pq5r81cqqlpfngkotj@4ax.com>, Roedy Green <see_website@mindprod.com.invalid> wrote: > Is it possible to reconfigure copy paste to some other > keystrokes besides ctrl-C ctrl-V either within Java or > Windows entirely? > > They are quite inconveniently placed in a dsk layout. You can augment or replace the default key binding for a particular text component's "copy" and "paste" actions: <http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html> I've never tried to make a wholesale change. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Jim Janney <jjanney@shell.xmission.com> |
|---|---|
| Date | 2013-01-24 18:16 -0700 |
| Message-ID | <ydnobge12px.fsf@shell.xmission.com> |
| In reply to | #21640 |
Roedy Green <see_website@mindprod.com.invalid> writes: > Is it possible to reconfigure copy paste to some other keystrokes > besides ctrl-C ctrl-V either within Java or Windows entirely? > > They are quite inconveniently placed in a dsk layout. This is a good thing. Programmers should not copy/paste on a regular basis. But on Windows I normally use control-insert/shift-insert anyway. No need to reconfigure anything, it already works. That's the key marked "Ins", just left of the home key. -- Jim Janney
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-24 17:18 -0800 |
| Message-ID | <89bbdac8-688c-4fbb-98ec-a1ae8ab25770@googlegroups.com> |
| In reply to | #21678 |
Jim Janney wrote: > Roedy Green writes: >> Is it possible to reconfigure copy paste to some other keystrokes >> besides ctrl-C ctrl-V either within Java or Windows entirely? > >> They are quite inconveniently placed in a dsk layout. > > This is a good thing. Programmers should not copy/paste on a regular > basis. Ridiculous assertion. I'm a programmer, and a good one at that, and I copy/paste dozens or hundreds of times a day. Code. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Jim Janney <jjanney@shell.xmission.com> |
|---|---|
| Date | 2013-01-24 19:51 -0700 |
| Message-ID | <ydnk3r20yc2.fsf@shell.xmission.com> |
| In reply to | #21680 |
Lew <lewbloch@gmail.com> writes: > Jim Janney wrote: >> Roedy Green writes: >>> Is it possible to reconfigure copy paste to some other keystrokes >>> besides ctrl-C ctrl-V either within Java or Windows entirely? >> >>> They are quite inconveniently placed in a dsk layout. >> >> This is a good thing. Programmers should not copy/paste on a regular >> basis. > > Ridiculous assertion. I wan't entirely serious when I wrote that. However... Any time I find myself faced with a lot of similar code, I do start looking for ways to abstract out the similarities, in whatever language I happen to be working in. Java is particularly rich in ways to accomplish this. And for really trivial boilerplate code, any good programming editor should provide ways to generate that that are both more flexible and less error-prone than simple copy/paste. Again, Eclipse is particularly rich in ways to accomplish this. I stand by my ridiculous assertion :-) -- Jim Janney
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-01-24 18:59 -0800 |
| Message-ID | <7a1c356f-e9d7-4a2a-a4ec-836d55d9acda@googlegroups.com> |
| In reply to | #21684 |
Jim Janney wrote: > Lew writes: >> Jim Janney wrote: >>> This is a good thing. Programmers should not copy/paste on a regular >>> basis. > >> Ridiculous assertion. > > I wan't entirely serious when I wrote that. However... > > Any time I find myself faced with a lot of similar code, I do start > looking for ways to abstract out the similarities, in whatever language > I happen to be working in. Java is particularly rich in ways to > accomplish this. And for really trivial boilerplate code, any good > programming editor should provide ways to generate that that are both > more flexible and less error-prone than simple copy/paste. Again, > Eclipse is particularly rich in ways to accomplish this. > > I stand by my ridiculous assertion :-) It's too broad. Let's say I have a method name 'loadResourceFromBlarg()' and I'm programming with Eclipse or NetBeans or one of those editors. Now I could use Ctrl-space to get code completion, but if there are a number of 'loadResourceFromXxx()' methods, the completion list might take time. If there are many calls to the method of choice, I'll likely copy the method name once into the clipboard and repeatedly paste it. Let's say I'm importing static a bunch of members from a utility class. import static junit.framework.Assert.assertEquals import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertNotSame; import static junit.framework.Assert.assertTrue; It's much faster to copy "import static junit.framework.Assert.assert", repeatedly paste it and just type the part that varies. This type of thing comes up a *lot*, so I copy and paste on a regular and frequent basis. This has nothing to do with the refactoring of which you spoke. You're assertion was ridiculous because it banned legitimate uses of copy-paste. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-01-24 22:56 -0500 |
| Message-ID | <5102027d$0$292$14726298@news.sunsite.dk> |
| In reply to | #21684 |
On 1/24/2013 9:51 PM, Jim Janney wrote: > Lew <lewbloch@gmail.com> writes: >> Jim Janney wrote: >>> Roedy Green writes: >>>> Is it possible to reconfigure copy paste to some other keystrokes >>>> besides ctrl-C ctrl-V either within Java or Windows entirely? >>> >>>> They are quite inconveniently placed in a dsk layout. >>> >>> This is a good thing. Programmers should not copy/paste on a regular >>> basis. >> >> Ridiculous assertion. > > I wan't entirely serious when I wrote that. However... > > Any time I find myself faced with a lot of similar code, I do start > looking for ways to abstract out the similarities, in whatever language > I happen to be working in. Java is particularly rich in ways to > accomplish this. And for really trivial boilerplate code, any good > programming editor should provide ways to generate that that are both > more flexible and less error-prone than simple copy/paste. Again, > Eclipse is particularly rich in ways to accomplish this. > > I stand by my ridiculous assertion :-) Often code can be refactored, but sometimes it is not possible either because of the type of code or because projects can not depend on each other. But there are also a lot besides Java code. Various Java EE descriptor files, various log4j or Spring config files etc.. I think most developer do their part of copy paste. Probably also get it wrong occasionally. :-) Binding all this to snippet shortcuts is only practical for a few often used pieces. It will not work for the hundreds or thousands of more rarely used pieces. Arne
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-01-25 08:56 -0800 |
| Message-ID | <17e5g8hre67fpi6d53m6pkhn6e68m42uh6@4ax.com> |
| In reply to | #21678 |
On Thu, 24 Jan 2013 18:16:42 -0700, Jim Janney <jjanney@shell.xmission.com> wrote, quoted or indirectly quoted someone who said : > Programmers should not copy/paste on a regular >basis. You mean should not clone code, right? Lots of copy paste is rearranging, refactoring, building tables from external sources etc. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law
[toc] | [prev] | [next] | [standalone]
| From | Jim Janney <jjanney@shell.xmission.com> |
|---|---|
| Date | 2013-01-25 11:29 -0700 |
| Message-ID | <ydnfw1p15h5.fsf@shell.xmission.com> |
| In reply to | #21705 |
Roedy Green <see_website@mindprod.com.invalid> writes: > On Thu, 24 Jan 2013 18:16:42 -0700, Jim Janney > <jjanney@shell.xmission.com> wrote, quoted or indirectly quoted > someone who said : > >> Programmers should not copy/paste on a regular >>basis. > > You mean should not clone code, right? Lots of copy paste is > rearranging, refactoring, building tables from external sources etc. That is indeed the very thing that I mean, yes :-) Although for most refactoring I find Eclipse's builtin tools superior to doing it manually. -- Jim Janney
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web