Programming question
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Get a US keyboard? *ducks* Just kidding. Use a key re-mapper and re-map an easy but not-often-used key on your kb to the braces.
regards, Paul Watson Ireland FeedHenry needs you
eh, stop bugging me about it, give it a couple of days, see what happens.
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Use VB.net. ;)
E=mc2 -> BOOM
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Greeeg wrote:
What are your solutions to this problem?
I carefully avoid ever programming while using a german keyboard layout. You might think this would be fairly trivial, considering i'm not living in Germany, nor do i work with any german-language programmers. You'd be right.
---- Scripts i’ve known... CPhog 1.8.2 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.2 - printer-friendly forums Expand all 1.0 - Expand all messages In-place Delete 1.0 - AJAX-style post delete Syntax 0.1 - Syntax highlighting for code blocks in the forums
-
1. Use a different keyboard? 2. Write an add-in that maps other, easier typed characters to the { and } characters
cheers, Chris Maunder
CodeProject.com : C++ MVP
FIX: A MFC program created in Visual Studio .NET 2003 unexpectedly quits when you try to close it[^]
Chris Maunder wrote:
2. Write an add-in that maps other, easier typed characters to the { and } characters
A VS.net addin would probably be the best idea, because I don't need to remap these keys system wide. I don't know if such a solution exists, though. Maybe I need to do this myself.
-
Use VB.net. ;)
E=mc2 -> BOOM
-
Get a US keyboard? *ducks* Just kidding. Use a key re-mapper and re-map an easy but not-often-used key on your kb to the braces.
regards, Paul Watson Ireland FeedHenry needs you
eh, stop bugging me about it, give it a couple of days, see what happens.
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Greeeg wrote:
I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for }
Consider yourself lucky. I have to type ALT+123 and ALT+125 (on the numpad) to write { and }. Anyway, I'm used to that. EDIT: I forgot to mention that I use an Italian keyboard. :-O -- modified at 14:25 Sunday 20th August, 2006
_____________________________________________ Tozzi is right: Gaia is getting rid of us. Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.0 RC...
-
Greeeg wrote:
I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for }
Consider yourself lucky. I have to type ALT+123 and ALT+125 (on the numpad) to write { and }. Anyway, I'm used to that. EDIT: I forgot to mention that I use an Italian keyboard. :-O -- modified at 14:25 Sunday 20th August, 2006
_____________________________________________ Tozzi is right: Gaia is getting rid of us. Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.0 RC...
Why not just create a macro to parse the open file and replace a pre defined sequence? Say <<< for { and "!@#$%^&&*(*() for } I'm a Brit living in China using a US keyboard, likewise I have to hit the num pad every time I want to use the £ sign.
-
Why not just create a macro to parse the open file and replace a pre defined sequence? Say <<< for { and "!@#$%^&&*(*() for } I'm a Brit living in China using a US keyboard, likewise I have to hit the num pad every time I want to use the £ sign.
I was going to suggest that but then realised it screws up intellisense, auto-indenting and a host of other bits in VS.
regards, Paul Watson Ireland FeedHenry needs you
eh, stop bugging me about it, give it a couple of days, see what happens.
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
-
No curly brackets though.
E=mc2 -> BOOM
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
The typical solution indeed is to use an US keyboard layout (+ a US keyboard if available) I'm quite ok with the german keyboard, although it does put notable strain on my hands, so I might try that, too.
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify! || Fold With Us! || sighist -
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Use
??<
and??>
instead? ;)--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
The long term solution is to program in VB.Net - enjoy.;)
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
-
Yeah, this is really a programming question, sort of :~ What I really hate is typing curly braces in languages like C#/C++ etc. I use a german keyboard layout and typing { and } involes using a weird combination, Alt+Gr+7 for { and Alt+Gr+0 for } Not only does this disturb the typing flow, but the combination is also really unhandy and error prone, especially when switching keybords often (laptop, desktop, work etc). What are your solutions to this problem? :) regards
Greeeg wrote:
What are your solutions to this problem?
It's obvious that most people that have replied have been in living in .NET land too long. :laugh: It's simple, use a macro. For instance...
#define BO {
#define BC }int main(int argc, char *argv[])
BO
return 0;
BCJeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)
-
Greeeg wrote:
What are your solutions to this problem?
It's obvious that most people that have replied have been in living in .NET land too long. :laugh: It's simple, use a macro. For instance...
#define BO {
#define BC }int main(int argc, char *argv[])
BO
return 0;
BCJeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)
-
How about writing an add-in that completes the braces, so that you only have to type the left brace. That'd save you 50% typing, and you won't have to change keyboards or anything. -- Nicola
-
Yeah I remember that one. A classic example of macro abuse.
Jeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)
-
Greeeg wrote:
What are your solutions to this problem?
It's obvious that most people that have replied have been in living in .NET land too long. :laugh: It's simple, use a macro. For instance...
#define BO {
#define BC }int main(int argc, char *argv[])
BO
return 0;
BCJeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)
Now THAT's using your knoggin!
-------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
-
Use
??<
and??>
instead? ;)--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
:doh:
---- Scripts i’ve known... CPhog 1.8.2 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.2 - printer-friendly forums Expand all 1.0 - Expand all messages In-place Delete 1.0 - AJAX-style post delete Syntax 0.1 - Syntax highlighting for code blocks in the forums