Is there any command line that can set a folder as the "Snippet Folder"?

Hi all,

The subject's meaning is that I first create a new folder int the directory "C:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033\"(in the .net 2005 install location).

And the folder cann't be recognized by .Net as the "Snippet Folder" till I use the "Code Snippet Manager" to add it as the correct folder.

Now I didn't want to use this way because I want make a setup to install the snippet files to the new created folder.So the question is that is there any command line or other ways that can set it as "Snippet Folder"。

And the power toy cannot create a new folder and then the user can select it.I think the power toy must have this function that the user can create a new folder and then select it as the snippet folder.

Thanks very much for any help.




Answer this question

Is there any command line that can set a folder as the "Snippet Folder"?

  • David C Baldauff

    Before leaving work today, I want to ask you that:Can code snippet(in c#) can add using or reference automaticlly

    Could you please give me a complicated snippet example

    how to control the following things:

    condition:

    I created a console application and didn't write the namespace upper the class(or I deleted all the namespace such as "using System")

    And I write the code in the snippet like this:Control.WriteLine("just an example of namespace and reference");

    Question:

    However I think it would give the compling errors after I insert the snippet into the Main methon.So,the question is that how to let the snippets know it miss the namespace and it can add the namespace "using System;" automaticlly or modify the code like this"System.Console.WriteLine(...)" automaticlly./

    Is it possible to archieve this

    Thanks again!



  • freeze

    When we install any content from within the Content Installer, we only write to the "My Documents" section for the current user. The reason or this is that not all users have Administrator priveleges so writing to that location would not work for all users, but more importantly we only write to My Documents because of the goal content files are intended to solve. When you download content off the web, you are downloading for for your interests, requirements, and problems you are trying to solve - not for everybody who uses that computer. So writing these files for all users of the computer is outside the scope of the Content Installer.

    Craig



  • AnonymousCoo

    Thanks very much!

    That will help me too.



  • Is there any command line that can set a folder as the "Snippet Folder"?