| | |
Export code snippets from VS 2008
Please support our C# advertiser: Intel Parallel Studio Home
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: 1
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: 1
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
| Thread Tools | Search this Thread |
.net 7 access ado.net algorithm app application array barchart bitmap box broadcast buttons c# cast check checkbox client color combo combobox concurrency control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing enabled encryption enum event excel file form format forms function gdi+ httpwebrequest image index input install java label list listbox listener localization mandelbrot math microsoftc#visualexpress mouseclick mysql operator path photoshop picturebox pixelinversion post problem programming radians regex remote remoting richtextbox serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf xml






