Can I save my block of code in Visual Studio 2010 and reuse it in my future web applications without the need to “ Add existing files” ? Is there a function in VS2010 that allows you to globally store these blocks of code?
Thank!
Oded almost covered it, but I'll just repeat it here. There are three main ways to do this, depending on how much code you want to keep.
: http://blogs.msdn.com/b/zainnab/archive/2010/01/24/drag-and-drop-code-onto-the-toolbox-vstiptool0007.aspx
( ) : http://blogs.msdn.com/b/zainnab/archive/tags/tips+and+tricks/snippet/
, .., , : http://blogs.msdn.com/b/zainnab/archive/2010/02/22/roll-your-own-project-or-item-with-the-export-template-wizard-vstipproj0004.aspx
Visual Studio , .
- , templates.
Source: https://habr.com/ru/post/1753111/More articles:How about failed attempts for htaccess password protected directories - phpHow to block a record when two participants try to access it? - sql-serverCan we edit the exsiting element class using jquery? - jqueryRecording logins for password protected directories - phphow to write an if else statement to insert a query to display an error in a stored procedure - sql-server-2005Поиск встроенного редактора html - javascriptWhat frame structure should I use to convert the video format - videoHow to conditionally create an index with MySQL? - mysqlResource for backward compatibility in HTML5? - html5Counting days - iPhone counting timer - objective-cAll Articles