For issues relating to the creation, use, and maintenance of code snippets.
3
votes
0answers
103 views
How to find code-snippets licensed elsewhere in our code-base
Over the past year I've developed a sizable software package in collaboration with a few others, that we now want to license properly (lawyers, valorisation and everything). For this to work though we ...
2
votes
0answers
61 views
Reuse variable name when inserting an Xcode snippet
I'm making a snippet to make UILabels faster. In this snippet I really just want to set the variable name once and then use it later when setting the color and background color. How can I reuse what I ...
2
votes
0answers
224 views
Visual Studio 2012 snippet shortcuts not working for SQL
I have a custom code snippet that I can access just fine via Ctrl+K, Ctrl+X and then typing 'm' for 'My Code Snippets' and hitting Tab, then typing the first letter of the snippet I want to use, then ...
2
votes
0answers
148 views
Customize Xcode snippet library
Thank you for reading my question.
I want to customize my Xcode snippet library.
I've read this article.
http://www.icodeblog.com/2011/12/06/using-xcode-4-snippets/
Now I want to customize my ...
2
votes
0answers
88 views
Can I create project specific code snippets?
In visual studio 2010, is there a way to make snippets specific to a single project or solution? I'm interested in doing this so that I might use them to support my architectural decisions (i.e. ...
2
votes
0answers
263 views
Visual Studio 2010 Javascript Code Snippets: Based on function parameters
What I'm looking to do is add vsdoc info to my javascript using snippets. I'd like to be able to select below a javascript function declaration, call my snippet, and the snippet would create the ...
2
votes
0answers
38 views
OS/IDE-agnostic method of storing snippets
I would like a way to store code snippets in a very straightforward way (to store and to retrieve).
I code sometimes at home sometimes at work or various other workspaces, so I'd like a repository ...
2
votes
0answers
132 views
What are drop targets in gedit's snippets?
There is a plugin for gedit to handle snippets. In the Snippets Manager under "Activation" for every snippet you can set the drop targets. There are some preformatted alternatives to choose between ...
1
vote
0answers
29 views
What is missing here in the usage of fromAscii()?
I've some strange issue and don't know how to figure it out.
setup:- Qt4.8.2 and Win7 platform and IDE VS2010.
Lets Assume:
A.dll , contains the code snippet described below & B.dll , ...
1
vote
0answers
23 views
How can we implement functionality similar to Dash?
Specifically, how can we observe input to match snippets and how can we cause an input window to appear with modifiable content for insertion in text fields and views on OS X?
1
vote
0answers
158 views
Visual Studio 2012 - Import/Export GitHub Gists
I came accross the following post: Sexy Code Snippet Management With Gists
by Jeffrey Way describing how to manage and share snippets using GitHub from within Sublime Text 2.
He uses a plugin to ...
1
vote
0answers
94 views
REGEX expression to add some amount of whitespaces to the word
I`m trying to write a snip pet for Sublime Text 2.
The idea is that the user types a string which will be passed to the called snippet as an argument $TM_CURRENT_WORD. I need to write a regex ...
1
vote
0answers
99 views
Escaping $ in Qt Creator's Code Snippet
In Qt Creator snippets, how do I work around $ symbol being replaced? According to this document, variables are referenced by surrounding their names with $ like this: $variable$. However, what I am ...
1
vote
0answers
308 views
Displaying snippets of code in Word for Mac 2011
I would like to display code snippets (created in R) in a .docx file created in Word for Mac 2011 (which I am stuck with). I have tried inserting text boxes but they only display for the length of one ...
1
vote
0answers
65 views
Is there a Surround With for aptana studio plugin?
Is there some way to get "surround with" in the Aptana perspective in Eclipse like you have in the Java perspective. I would love to be able to surround text with html tags like eg: ...
1
vote
0answers
270 views
How can I skip variable in sublime text 2 snippet?
I have a sublime text 2 snippet like this:
on('${1:click}', ${2:'$3', }function (e) {
$0
return false;
});
If I trigger the snippet first is highlighted click, next is highlighted '', and ...
1
vote
0answers
225 views
Good place to find different procedual and non-procedual generation algorithms
Does anyone know a good place to find different algorithms for generating worlds, universes, maps, etc. ?
I have searched several places but most of the times the pages only tell you about the theory ...
1
vote
0answers
166 views
Color coded Sharepoint Enterprise Wiki templates?
The company I work for (web development) wants to start using a Sharepoint Enterprise Wiki for sharing, amongst other things, best practises and code snippets. To make it readable and more user ...
1
vote
0answers
38 views
Apply surround with code snippet to number of items?
Is there a way to apply the surround with code snippet to number of items?
for example lets say I have number of hyperlink items and I want to have each one within a <li> </li>.
Can I ...
1
vote
0answers
63 views
How do you automatically tab ALL the selected text when using a SurroundsWith SnippetType?
Below is my SQL snippet that is used to surround existing SQL. After highlighting some SQL and inserting this snippet, I want ALL the selected text to be indented by a tab or several spaces. My ...
1
vote
0answers
127 views
Textmate Snippet Regex to CamelCase a String
I need to create a TextMate snippet that will mirror an input and make it camel cased.
The base snippet looks like this:
<a href="#${1}" data-toggle="tab">${1:Tab 1}</a>
Example input: ...
1
vote
0answers
127 views
How to mark code snippet in Headerdoc?
I usually need to write many short code in code comment like this. Is this possible to use in Apple's Headerdoc? Because this type of code notation is generally used heavily, so i believe there's a ...
1
vote
0answers
93 views
Is there a method to import Dreamweaver Snippets into Coda as Clips
Is there a simple way (app, automater script) to import my Dreamweaver Snippets into Coda as Clips ?
1
vote
0answers
38 views
How to group snippets?
I want to figure out if there is a way to group snippets and control the way they appear on different pages. Is there a way to reuse the arrangement of different snippets across different pages.
1
vote
0answers
106 views
Code snippets within lists (Creole wiki)
While Wikis and Wikipedia is still in Area 51, I'd like to ask this question about using the Creole wiki markup. I have the following code:
# Initial instructions here.
# Some instructions here. See ...
1
vote
0answers
29 views
Export all Codesnippets under one vsi.Is this possible?
Wondering if there is a utility to export all the codesnippets into one vsi?
Any suggestions
1
vote
0answers
89 views
How do I create a code snippet that appears on the current line?
I'm trying to create an HTML code snippet for vs 2010. The snippet so far is:
<Code Language="html"><![CDATA[<%= this.Resource("$resourceKey$") %>]]></Code>
However when I ...
1
vote
0answers
65 views
Where can I get VS code snippets?
Apparently there are many questions that deal with how to store code snippets for Visual Studio, but I did not find one that contains links. So, is there a website that offers useful snippets? My ...
0
votes
0answers
6 views
Backup Code Snippets for Xcode 4.6
I've been searching for backing up user code snippet for Xcode, and i got this below which is only for system snippets!
For Xcode's self contained app. This is the exact file path of the
default ...
0
votes
0answers
22 views
Finding a script name with an Aptana 3.4 snippet
Using a snippet keyword in a JavaScript editor, I want to be able to slice off the file extension (e.g. '.js') in order to derive a class name from the file name, and seed some comments and functions ...