code-snippets

Where do you store your code snippets?

I used to use Snippets Text Database, but now I switched to Evernote. At some point I need to migrate all of my old stuff there too. What about you? ...

Do you have any recommended code-snippets for Microsoft Visual Studio?

What are some macros that you have found useful in Visual Studio for code manipulation and automation? Since good code can be useful in all languages, this question is not language specific. ...

Third party Visual Studio snippets

Do you know where I could find some useful third party (free) code snippets for VS 2008? ...

Helpful snippits?

I'm a relatively new coder, and I'm looking to increase my snippits library. What are some of your most used snippits? I'm mainly looking for ones that I might not have thought about until I've had more experience, but will make me more productive. Have a snippit that is particularly clever? Post it! ...

What Code Snippet Editor Do You Use?

Part of my "sort your development life out, Rob" push has been me taking note of the fact that I do not have a library of code snippets (and Jeff did a post too). Now I have a few, but I know I should really be working towards creating my own library to boost my productivity. One thing I have started doing is leaving my code snippet ed...

What are the most useful (custom) code snippets for C#?

What are the best code snippets for C#? (using visual studio) VB has a lot that are pre-defined, but there are only a handful for C#. Do you have any really useful ones for C#? Anyone want to post a good custom one you created yourself? Anyone?... Bueller? ...

What is your preferred site for code snippets

Do you use any public websites for code-snippets? If so, can you let me know which ones you would recommend? Clarification I'm not looking for anything specific to a particular language, as suggested below - I work with a few different languages so I need something fairly general. I've just found www.snippler.com that seems like a good...

Quick and dirty way to profile your code

What method do you use when you want to get performance data about specific code paths? ...

What is the best code template facility for Emacs?

Particularly, what is the best snippets package out there? Features: easy to define new snippets (plain text, custom input with defaults) simple navigation between predefined positions in the snippet multiple insertion of the same custom input accepts currently selected text as a custom input cross-platform (Windows, Linux) dynamicall...

VS Code Snippets automatic synchronizer?

I use more than one machine for development in VS 2008. Is there a tool to automatically synchronize the snippets between the machines? Same concept of synchronizing browsers' bookmark. ...

How to save code snippets (vb/c#/.net/sql) to sql server

I want to create a code/knowledge base where I can save my vb.net/c#.net/sqlserver code snippets for use later. I've tried setting the ValidateRequest property to false in my page directive, and encoding the value with HttpUtility.HtmlEncode (c#.net), but I still get errors. thoughts? ...

General Development Notes

During a typical day programming, I implement functions in a way that I would like to remember. For instance, say I tuned a DB insert function that, when I come across the situation again, I want to find what I did to resuse. I need a place to keep the solution(what I did), and I need to find it somehow, which may be months or a year lat...

Multi-user Snippet Manager

Currently, we're using a wiki at work to share insights, tips and information. But somehow, people aren't sharing snippets that way. It's probably too inconvenient to write and too difficult to find snippets there. So, is there a multi-user/collaborative snippets manager around? Something like Snippely. (Has anyone tried Snippely in mul...

Create custom code snippet in Visual Studio 2008

Like the title says, how do you create custom code snippets in Visual Studio 2008? ...

How to detect if JavaScript is disabled?

There was a post this morning asking about: How many people disable javascript. Then I began to wonder what techniques might be used to determine if the user has it disabled. Anyone know of some short/simple ways to detect if Javascript is disabled? my intention is to give warning that the site is not able to function properly without th...

How do I escape from a Snippet? (Vb.Net)

In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB? Edit: I prefer not to use the mouse. ...

How do you find Leapyear in VBA?

What is a good implementation of a IsLeapYear function in VBA? Edit: I ran the if-then and the DateSerial implementation with iterations wrapped in a timer, and the DateSerial was quicker on the average by 1-2 ms (5 runs of 300 iterations, with 1 average cell worksheet formula also working). ...

How do you determine Daylight Savings Time in VBA?

What function will let us know whether a date in VBA is in DST or not? ...

Snippets for C++ in VS2008

Does someone know of any port to VS2008 of the support for snippets for C++? VS2005 had a nice enhancement pack: Microsoft Visual Studio 2005 IDE Enhancements But the snippets for C++ feature is not supported in VS2008. I already tryed to use the SDK to reimplement it but gave up out of lack of time since are a huge number of Language...

Formatting Literal parameters of a C# code snippet

Is there any way that I can change how a Literal of a code snippet renders when it is used in the code that the snippet generates? Specifically I'd like to know if I can have a literal called say, $PropertyName$ and then get the snippet engine to render "_$PropertyName$ where the first character is made lowercase. I can't afford R#. P...