Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Programming question

Programming question

Scheduled Pinned Locked Moved The Lounge
helpquestioncsharpc++
37 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Tad McClellan

    Use VB.net. ;)

    E=mc2 -> BOOM

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #7

    I think that makes it worse ;)

    T 1 Reply Last reply
    0
    • P Paul Watson

      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

      Shog9 wrote:

      eh, stop bugging me about it, give it a couple of days, see what happens.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #8

      Paul Watson wrote:

      Get a US keyboard? *ducks* Just kidding.

      Nah it's okay. I'm familiar with the US keyboard layout. But I'd prefer a solution limited to VS.

      1 Reply Last reply
      0
      • L Lost User

        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

        D Offline
        D Offline
        Dario Solera
        wrote on last edited by
        #9

        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...

        W 1 Reply Last reply
        0
        • D Dario Solera

          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...

          W Offline
          W Offline
          Waldermort
          wrote on last edited by
          #10

          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.

          P 1 Reply Last reply
          0
          • W Waldermort

            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.

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #11

            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

            Shog9 wrote:

            eh, stop bugging me about it, give it a couple of days, see what happens.

            1 Reply Last reply
            0
            • L Lost User

              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

              M Offline
              M Offline
              malockin
              wrote on last edited by
              #12

              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

              L 1 Reply Last reply
              0
              • L Lost User

                I think that makes it worse ;)

                T Offline
                T Offline
                Tad McClellan
                wrote on last edited by
                #13

                No curly brackets though.

                E=mc2 -> BOOM

                1 Reply Last reply
                0
                • L Lost User

                  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

                  P Offline
                  P Offline
                  peterchen
                  wrote on last edited by
                  #14

                  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

                  1 Reply Last reply
                  0
                  • L Lost User

                    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

                    M Offline
                    M Offline
                    Michael Dunn
                    wrote on last edited by
                    #15

                    Use ??< and ??> instead? ;)

                    --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

                    S 1 Reply Last reply
                    0
                    • L Lost User

                      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

                      D Offline
                      D Offline
                      Duncan Edwards Jones
                      wrote on last edited by
                      #16

                      The long term solution is to program in VB.Net - enjoy.;)

                      '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                      G 1 Reply Last reply
                      0
                      • L Lost User

                        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

                        J Offline
                        J Offline
                        Jeremy Falcon
                        wrote on last edited by
                        #17

                        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;
                        BC

                        Jeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)

                        L Richard Andrew x64R 2 Replies Last reply
                        0
                        • J Jeremy Falcon

                          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;
                          BC

                          Jeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #18

                          This reminds me of Better C :-D

                          J 1 Reply Last reply
                          0
                          • M malockin

                            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

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #19

                            My idea is to press Shift+Space and then "{ \newline }" would be insterted at the cursor position. How could I do that, via Snippet, Macro, Addin?

                            S 1 Reply Last reply
                            0
                            • L Lost User

                              This reminds me of Better C :-D

                              J Offline
                              J Offline
                              Jeremy Falcon
                              wrote on last edited by
                              #20

                              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)

                              1 Reply Last reply
                              0
                              • J Jeremy Falcon

                                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;
                                BC

                                Jeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)

                                Richard Andrew x64R Offline
                                Richard Andrew x64R Offline
                                Richard Andrew x64
                                wrote on last edited by
                                #21

                                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

                                J 1 Reply Last reply
                                0
                                • M Michael Dunn

                                  Use ??< and ??> instead? ;)

                                  --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

                                  S Offline
                                  S Offline
                                  Shog9 0
                                  wrote on last edited by
                                  #22

                                  :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

                                  1 Reply Last reply
                                  0
                                  • Richard Andrew x64R Richard Andrew x64

                                    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

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #23

                                    Yeah, I still think macros are great as long as they aren't abused.

                                    Jeremy Falcon The mind is like a parachute. It works best when it is open. - Colin Angus Mackay (2006-08-18)

                                    R 1 Reply Last reply
                                    0
                                    • T Tad McClellan

                                      Use VB.net. ;)

                                      E=mc2 -> BOOM

                                      G Offline
                                      G Offline
                                      Gary R Wheeler
                                      wrote on last edited by
                                      #24

                                      "Doctor, doctor! I keep getting these awful headaches!" "First, stop pointing that gun at your head and pulling the trigger..."


                                      Software Zen: delete this;

                                      Fold With Us![^]

                                      1 Reply Last reply
                                      0
                                      • D Duncan Edwards Jones

                                        The long term solution is to program in VB.Net - enjoy.;)

                                        '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                                        G Offline
                                        G Offline
                                        Gary R Wheeler
                                        wrote on last edited by
                                        #25

                                        Are we going to have to kill you to make you stop?


                                        Software Zen: delete this;

                                        Fold With Us![^]

                                        1 Reply Last reply
                                        0
                                        • S Shog9 0

                                          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

                                          R Offline
                                          R Offline
                                          Ryan Binns
                                          wrote on last edited by
                                          #26

                                          Shog9 wrote:

                                          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.

                                          Yes, thankyou for that remarkable insight :rolleyes:

                                          Ryan

                                          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups