473,848 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best ways to source controlling "Code Snippets"

I am interested in learning how to use the VS 2005 code snippets.
However, I wish to know what are the best ways to source control the
code snippets?

Are there any source safe/subversion add-ons for this purpose?

If not, any urls which demonstrates code snippets management?
I apologize for the cross-posting. This is relative obscure question,
and wish to get as much exposure as possible.

great thanks
Frank

Mar 23 '07
13 2336
"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
On Mar 24, 4:35 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
>>
Thank you! Awesome!!

Now, is there a way to invoke "Insert Code Snippet" without using the
context menu in the code window? In VB, you can type ? and tab and it
brings them up. Is there any such shortcut in C#?

Ctrl+K+X

More information about Code Snippets:
http://msdn2.microsoft.com/en-us/lib...92(VS.80).aspx
Thanks very much!!

Robin S.
Mar 24 '07 #11

<fr*****@gmail. comwrote in message
news:11******** *************@o 5g2000hsb.googl egroups.com...
On Mar 24, 11:47 am, "Alexey Smirnov" <alexey.smir... @gmail.com>
wrote:
>On Mar 24, 4:35 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
Thank you! Awesome!!
Now, is there a way to invoke "Insert Code Snippet" without using the
context menu in the code window? In VB, you can type ? and tab and it
brings them up. Is there any such shortcut in C#?

Ctrl+K+X

More information about Code
Snippets:http://msdn2.microsoft.com/en-us/lib...92(VS.80).aspx

Hi,

Sorry to bother.

What is the best way to ensure all the developers on a team have the
same code snippets on their machines?

What is the best way to source control the code snippets?

regards
Frank
I'd put them on a share, and add that library to the Code Snippet Manager.
That way, if you write your own, you can store them there and everyone can
get to them.

Robin S.
Mar 24 '07 #12
On Mar 24, 5:40 pm, frk....@gmail.c om wrote:
On Mar 24, 11:47 am, "Alexey Smirnov" <alexey.smir... @gmail.com>
wrote:
On Mar 24, 4:35 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
Thank you! Awesome!!
Now, is there a way to invoke "Insert Code Snippet" without using the
context menu in the code window? In VB, you can type ? and tab and it
brings them up. Is there any such shortcut in C#?
Ctrl+K+X
More information about Code Snippets:http://msdn2.microsoft.com/en-us/lib...92(VS.80).aspx

Hi,

Sorry to bother.

What is the best way to ensure all the developers on a team have the
same code snippets on their machines?

What is the best way to source control the code snippets?

regards
Frank
Use a public shared folder for common snippets

http://msdn2.microsoft.com/en-us/lib...sb(VS.80).aspx

Mar 24 '07 #13
On Mar 24, 4:50 pm, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
On Mar 24, 5:40 pm, frk....@gmail.c om wrote:
On Mar 24, 11:47 am, "Alexey Smirnov" <alexey.smir... @gmail.com>
wrote:
On Mar 24, 4:35 pm, "RobinS" <Rob...@NoSpam. yah.nonewrote:
Thank you! Awesome!!
Now, is there a way to invoke "Insert Code Snippet" without using the
context menu in the code window? In VB, you can type ? and tab and it
brings them up. Is there any such shortcut in C#?
Ctrl+K+X
More information about Code Snippets:http://msdn2.microsoft.com/en-us/lib...92(VS.80).aspx
Hi,
Sorry to bother.
What is the best way to ensure all the developers on a team have the
same code snippets on their machines?
What is the best way to source control the code snippets?
regards
Frank

Use a public shared folder for common snippets

http://msdn2.microsoft.com/en-us/lib...sb(VS.80).aspx
many thx

Mar 24 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1297
by: Charles Law | last post by:
I have started getting "There is no source code available for the current location" when I run my VB.NET solution. I have no breakpoints set but cannot get rid of this message. The debugger won't let me continue. Does anyone know what is going on? I seem to think that this only started happening after I used the "Disable all breakpoints" menu option. Since then, I have re-enabled breakpoints and removed all breakpoints, but now the...
13
2301
by: Adam | last post by:
My "C:\" is getting full. What's the best way to install "wxWindows" without taking up 115 MB from my "C:\" ? Why do the following: MS Visual Studio, wxWindows, Borland C++, Stingray Objective Studio, ARM SDT, etc. like to install source code to the "C:\" drive?
0
1508
by: wilsonchan1000 | last post by:
There is a note regarding this error in UDB. I eventually found a solution and want to share with all or you. Problem occur with connect to db2 server: SQLCODE : -332 SQL0332N There is no available conversion for the source code page "1114" to
1
5657
by: Randy | last post by:
Hello All, I've got an app which performs a simple query to a web service and stores the returning data in a DataSet. The first time through it works find and as expected. The problem is that the second time I step through and I step on the line myDataAdapter1.Fill(tempds); I get the IDE error... "There is no source code available for the current location". If I run the app (not under the debugger) I get no error messages but this...
6
1617
by: swartzbill2000 | last post by:
Hello, I have some downloaded source code on my machine that the .net framework thinks is "not fully trusted". How can I fix this? I assume I use the 'Microsoft .NET Framework 1.1 Configuration' in some way. Bill
3
12021
by: nan | last post by:
Hi All, I am trying to connect the Database which is installed in AS400 using DB2 Client Version 8 in Windows box. First i created the Catalog, then when i selected the connection type as ODBC, then i am getting
4
6131
by: The Grue - James T. Sprinkle | last post by:
Does anyone know where I can download the source code to accompany PJ Plauger's book "The Standard C Library"? I find a lot of references for the library, but not the actual source code from the book. Any help would be appreciated! The Grue
2
2379
by: Ole Mercano | last post by:
When I create in Designer a new button on my Form it is automatically named e.g. "button1". When I doubleclick on it I am directed to the Form.cs where the following procedure is automatcially generated: private void button1_Click(Object sender, EventArgs e) { } To improve readability I want to rename now "button1" to "but_change_set".
2
4004
by: Deniz Dogan | last post by:
Hello. I am writing a program which has to send a signal (SIGUSR2 F.Y.I.) to a certain process, which I only know the name of, i.e. I need the PID for that process. How can I do this in C or C++? Also, I want to know where I can find the source code for the "pgrep" program. Thanks in advance.
0
1651
by: Bobzilla | last post by:
Ok, so I've looked around and I can't seem to find an answer to my specific question, so here goes... I am using VS 2003 and I have a solution with code and all that I am steping through. When I get to a certain spot I get the "There is no source code available for the current location." error, which I completely expect because it is a dll. My issue is that I have the source code for the dll and I was wondering if there was a way to...
0
9892
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10997
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10661
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10718
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10347
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9497
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5731
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4134
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3172
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.