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. Visual Studio
  4. Where can I download / share Intellisense code snippets?

Where can I download / share Intellisense code snippets?

Scheduled Pinned Locked Moved Visual Studio
visual-studioquestion
5 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.
  • B Offline
    B Offline
    BotCar
    wrote on last edited by
    #1

    I have written a handful of Intellisense code snippets that I would like to upload somewhere so that I can easily get hold of it if I am working on a different computer. It would also be nice to have a look at what code snippets other people use. I thought it would be easy to find some websites that does this, but I have not been able to find any. Do you know of such sites?

    L M 2 Replies Last reply
    0
    • B BotCar

      I have written a handful of Intellisense code snippets that I would like to upload somewhere so that I can easily get hold of it if I am working on a different computer. It would also be nice to have a look at what code snippets other people use. I thought it would be easy to find some websites that does this, but I have not been able to find any. Do you know of such sites?

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

      You could post them here in the Tips & Tricks section; see the posting guidelines[^] for further details.

      Use the best guess

      B 1 Reply Last reply
      0
      • B BotCar

        I have written a handful of Intellisense code snippets that I would like to upload somewhere so that I can easily get hold of it if I am working on a different computer. It would also be nice to have a look at what code snippets other people use. I thought it would be easy to find some websites that does this, but I have not been able to find any. Do you know of such sites?

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        It is not often that I get to supply a valid link but here is something from one of our own CodeStash[^] courtesy of POH. I really need to set this up myself :-O

        Never underestimate the power of human stupidity RAH

        B 1 Reply Last reply
        0
        • L Lost User

          You could post them here in the Tips & Tricks section; see the posting guidelines[^] for further details.

          Use the best guess

          B Offline
          B Offline
          BotCar
          wrote on last edited by
          #4

          Thanks. I'll keep that in mind if I cannot find a better solution.

          1 Reply Last reply
          0
          • M Mycroft Holmes

            It is not often that I get to supply a valid link but here is something from one of our own CodeStash[^] courtesy of POH. I really need to set this up myself :-O

            Never underestimate the power of human stupidity RAH

            B Offline
            B Offline
            BotCar
            wrote on last edited by
            #5

            Thanks, but this isn't quite what I was looking for. I'm not looking to share and browse pieces of commonly used code (although this is useful and I'm definitely bookmarking that site), I'm looking to share and browse the XML-based code snippets that Visual Studio use to, for instance, turn propfull into

            private int myVar;

            public int MyProperty
            {
                get { return myVar;}
                set { myVar = value;}
            }
            

            So, what I'd like to post is XML like the following:

            <?xml version="1.0" encoding="utf-8" ?>
            <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
            <CodeSnippet Format="1.0.0">
            <Header>
            <Title>propfull</Title>
            <Shortcut>propfull</Shortcut>
            <Description>Code snippet for property and backing field</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
            <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
            </Header>
            <Snippet>
            <Declarations>
            <Literal>
            <ID>type</ID>
            <ToolTip>Property type</ToolTip>
            <Default>int</Default>
            </Literal>
            <Literal>
            <ID>property</ID>
            <ToolTip>Property name</ToolTip>
            <Default>MyProperty</Default>
            </Literal>
            <Literal>
            <ID>field</ID>
            <ToolTip>The variable backing this property</ToolTip>
            <Default>myVar</Default>
            </Literal>
            </Declarations>
            <Code Language="csharp"><![CDATA[private $type$ $field$;

            public $type$ $property$
            {
                get { return $field$;}
                set { $field$ = value;}
            }
            $end$\]\]>
                    </Code>
                </Snippet>
            </CodeSnippet>
            

            </CodeSnippets>

            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