Top "Code-snippets" questions

For issues relating to the creation, use, and maintenance of code snippets.

Escaping the $ character in snippets

I find myself doing a ton of jQuery these days, so I started to abstract out some of the common …

visual-studio code-snippets
Insert current datetime in Visual Studio Snippet

Does anyone know of a way that I can insert the current date & time in a visual studio 2008 snippet? …

c# visual-studio-2008 code-snippets
Create custom code snippet in Visual Studio 2008

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

visual-studio-2008 code-snippets
Better Solution than Evernote for Code Snippets/Examples?

I'm learning javascript and want to create a library of example code snippets as I learn new ideas. I'm currently …

javascript syntax editor code-snippets evernote
Does anyone have a PHP snippet of code for grabbing the first "sentence" in a string?

If I have a description like: "We prefer questions that can be answered, not just discussed. Provide details. Write clearly …

php string code-snippets
How to create my custom vim snippets?

I want to create some snippets when writting c++. for example: create a file, cpp.snippets. priority -1 snippet exam …

vim plugins code-snippets
Handy F# snippets

There are already two questions about F#/functional snippets. However what I'm looking for here are useful snippets, little 'helper' …

f# reference code-snippets
Ace Editor manually adding snippets

TL;DR I am trying to manually trigger ace editor snippets through a function call, rather than the conventional approach (…

javascript code-snippets ace-editor
Visual Studio code snippets Cursor

In Visual Studio when you insert a snippet and finish inserting literals the cursor jumps to the beginning of the …

visual-studio code-snippets
How to convert seconds to time string in angular2?

So I've been looking for this functionality throughout the net and haven't found a solution that I could use to …

typescript angular code-snippets angular2-pipe