Simple question about Keyboard shortcut.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aranis

    Simple question about Keyboard shortcut.

    Would anyone know how to use a keyboard shortcut so at the end of a method
    syntax I can use that shortcut to create the method's pair of { } brackets
    ?

    Thank you much,
    Aranis


  • Roger Frost

    #2
    Re: Simple question about Keyboard shortcut.

    "Aranis" <aranis1@verizo n.netwrote in message
    news:gi5vj.2289 $JF.919@trnddc0 1...
    Would anyone know how to use a keyboard shortcut so at the end of a method
    syntax I can use that shortcut to create the method's pair of { }
    brackets ?
    >
    Thank you much,
    Aranis
    >
    >


    So you want a macro for Visual Studio that just inserts the string "{ }" at
    the cursor location when you press a specific key combination?

    Doesn't seem like much of a shortcut...I mean { } is only 3 keystrokes as it
    is, or maybe I'm not following your question.


    --
    Roger Frost
    "Logic Is Syntax Independent"

    Comment

    • Aranis

      #3
      Re: Simple question about Keyboard shortcut.

      Hi Roger, thanks for the reply.

      What I am asking is like Sub in VB. At the end of a method declaration,
      as soon as you hit the Enter key, VS creates the EndSub for you and the
      cursor goes where you need to implement the method code. It would be
      mighty nice to have that in C# also where you could just hit the enter key
      at the end of the method declaration and have a pair of brackets created
      with a line in between them where the cursor is in the right place so you
      could just start writing the code.

      I almost believe that there must be a flag that can be set in VS to have
      this thing activated.

      Aranis

      "Roger Frost" <frostrl@hotmai l.comwrote in message
      news:8E4B8A3A-A054-41EC-9D89-3DBC4DBAB33B@mi crosoft.com...
      "Aranis" <aranis1@verizo n.netwrote in message
      news:gi5vj.2289 $JF.919@trnddc0 1...
      >Would anyone know how to use a keyboard shortcut so at the end of a
      >method syntax I can use that shortcut to create the method's pair of { }
      >brackets ?
      >>
      >Thank you much,
      >Aranis
      >>
      >>
      >
      >
      >
      So you want a macro for Visual Studio that just inserts the string "{ }"
      at the cursor location when you press a specific key combination?
      >
      Doesn't seem like much of a shortcut...I mean { } is only 3 keystrokes as
      it is, or maybe I'm not following your question.
      >
      >
      --
      Roger Frost
      "Logic Is Syntax Independent"

      Comment

      Working...