| | |
Export code snippets from VS 2008
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Save the .cs file, or copy the code to your clipboard from visual studio then open notepad and paste the contents, then save the file.
Just treat it like any other text file.
Just treat it like any other text file.
•
•
Join Date: Aug 2008
Posts: 48
Reputation:
Solved Threads: 2
Hi ,
if i create snippets , in which path/file are they stored because i could not find them in the C:\Program Files\Microsoft Visual Studio 9.0
folder. (I made search for .snippet file , but i could not find mine)
Note:
I also noticed there is a Code snippet manager , but I don't know how to export a snippet , to import it on another computer
if i create snippets , in which path/file are they stored because i could not find them in the C:\Program Files\Microsoft Visual Studio 9.0
folder. (I made search for .snippet file , but i could not find mine)
Note:
I also noticed there is a Code snippet manager , but I don't know how to export a snippet , to import it on another computer
Last edited by stoymigo; Sep 11th, 2009 at 7:19 am.
Tools -- Import and Export Settings -- Export Selected Settings ---Deslect everything.
Then select: General Settings --- Code Snippet Locations
Run the export then look at the resulting file and see where your IDE is configured to save code snippets. Look in each of those stores and you will find your custom code snippet.
Then select: General Settings --- Code Snippet Locations
Run the export then look at the resulting file and see where your IDE is configured to save code snippets. Look in each of those stores and you will find your custom code snippet.
•
•
Join Date: Aug 2008
Posts: 48
Reputation:
Solved Threads: 2
Thanks for that , I did
It took me while to reply because , I was testing this.
I took the steps that you wrote , and then (on my other computer) I imported the settings created(the settings file was about 2KB because i used a few code snippets to test.
Nothing happened after i imported the vssettings file.
I opened the exported file and searched for text relevant to the snippets i created and found nothing.
I tried again , but instead of checking the "Code Snippets" checkbox , i checked the "Toolbox" checkbox , and it worked.
I did not create a snippets folder , i realised.
-Thanks
It took me while to reply because , I was testing this.
I took the steps that you wrote , and then (on my other computer) I imported the settings created(the settings file was about 2KB because i used a few code snippets to test.
Nothing happened after i imported the vssettings file.
I opened the exported file and searched for text relevant to the snippets i created and found nothing.
I tried again , but instead of checking the "Code Snippets" checkbox , i checked the "Toolbox" checkbox , and it worked.
I did not create a snippets folder , i realised.
-Thanks
![]() |
Similar Threads
- Code Snippets for whom? (DaniWeb Community Feedback)
- c code snippets (DaniWeb Community Feedback)
- Why are the Descriptions of Code Snippets in a Fixed Font? (DaniWeb Community Feedback)
- Perl in Code Snippets section? (DaniWeb Community Feedback)
- Blogs and Code Snippets sections :) (DaniWeb Community Feedback)
Other Threads in the C# Forum
- Previous Thread: file read/write question
- Next Thread: deploying my c# application and save state problem
Views: 263 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gcd gdi+ http httpwebrequest image index input install java label list listbox listener login math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion prime programming radians regex remote remoting resource saving serialization server sleep socket sql statistics stream string tcp text textbox time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






