| | |
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: 46
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: 46
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 access algorithm array asp.net barchart bitmap box broadcast buttons c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot math mouseclick movingimage mysql mysql.data.client operator path photoshop picturebox pixelinversion platform post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






