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. General Programming
  3. C#
  4. How to insert code snippet

How to insert code snippet

Scheduled Pinned Locked Moved C#
visual-studiotutorialquestion
4 Posts 3 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.
  • I Offline
    I Offline
    Imtiaz Murtaza
    wrote on last edited by
    #1

    I want to insert code snippet for Console.WriteLine(). I type the characters cw and pressing ENTER or TAB. But nothing is happening. When i type the characters cw intellisense shows me that this is code snippet for Console.WriteLine(), but either by pressing TAB or ENTER i can only see cw written. Yes, i can explicitly invoke the "insert snippet" menu and select my snippet. But i want to insert snippet quickly during coding without invoking menu. Please tell me how to do so ?

    Imtiaz

    N 1 Reply Last reply
    0
    • I Imtiaz Murtaza

      I want to insert code snippet for Console.WriteLine(). I type the characters cw and pressing ENTER or TAB. But nothing is happening. When i type the characters cw intellisense shows me that this is code snippet for Console.WriteLine(), but either by pressing TAB or ENTER i can only see cw written. Yes, i can explicitly invoke the "insert snippet" menu and select my snippet. But i want to insert snippet quickly during coding without invoking menu. Please tell me how to do so ?

      Imtiaz

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      After typing "cw", hit tab two times.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        After typing "cw", hit tab two times.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        A Offline
        A Offline
        Alan N
        wrote on last edited by
        #3

        Excellent, like the original poster I'd never understood how to do that. It's so easy when you know how! Alan.

        N 1 Reply Last reply
        0
        • A Alan N

          Excellent, like the original poster I'd never understood how to do that. It's so easy when you know how! Alan.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Yes, it's very easy. The most used one by me is "prop" for creating a property structure.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          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