code-snippets Questions
4
Solved
Once, there was this awesome SNIPPETS library of C (and C++) code. I used it from 1995 on, but its origin is much older and it was updated until at least 2007. From time to time, I found that I nee...
Indiana asked 23/11, 2011 at 17:31
5
Solved
I'm writing code in native C++ (not C++/CLR). I know that there is no built-in support for C++ with regards to the snippet manager and snipper picker interfaces, however I found a utility called "s...
Tonetic asked 7/5, 2010 at 13:55
3
Solved
I am trying to use snipMate and pydiction in vim together - however, both use the <tab> key to perform their genius-auto-completion-snippet-rendering-goodness-that-I-so-desire.
When pydictio...
Detainer asked 6/11, 2009 at 12:25
7
Solved
When I'm in an html.erb file, I get no snipMate snippets.
I would like both HTML and Ruby, or just HTML would be fine,
How would I do this?
Would I need to write a set of snippets?
If so, is the...
Boatload asked 11/1, 2011 at 14:38
1
Solved
Yasnippet seems to be working but the trigger key is not. I can load snippets, look at snippet tables and M-x yas/expand. However, after typing a trigger key (i.e time) I'd like to expand the snipp...
Adhesive asked 25/10, 2012 at 18:13
1
I'm a Sublime Text newbie, I was using Textmate before and there I had a handy 'today' command that was returning today's date in the editor (using the shell).
eg 'today' + TAB ==> '12/10/2012...
Ouse asked 7/10, 2012 at 10:54
5
Solved
I would like to make it so that the children of any element with the "snippet" class are read as text instead of HTML. I am aware that to do this, I would need to change the < and > signs so ...
Demp asked 16/12, 2011 at 17:33
0
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 ...
Midst asked 5/9, 2012 at 12:17
2
Solved
I want to write a code snippet which does following thing, like if I have a class let's say MyClass:
class MyClass
{
public int Age { get; set; }
public string Name { get; set; }
}
so the s...
Bunyip asked 1/9, 2012 at 18:51
2
I'm creating a page which has a g+ share button, but I wanted to dynamically change the description of the content to share. to customize the share button I am using the snippet with Open Graph pro...
Utley asked 4/8, 2012 at 0:22
1
Solved
I tried to import this into the Code Snippets Manager and got the error "The snippet files chosen were not valid." Since this is my first snippet, and the error message doesn't deign to point out w...
Rumney asked 7/8, 2012 at 14:3
2
Solved
Sublime Text 2 comes with many built-in completions/templates for common idioms. In C++, these include for loops with fields, etc - if I wrote vec and pressed tab, it would expand to std::vector<...
Holography asked 18/6, 2012 at 14:53
3
Solved
Is there any ready for use code snippet in VS 2010 Express edition (for C#), to create constructor with parameters from selected properties?
When I create a new class and I've written following c...
Vivienne asked 18/10, 2011 at 15:21
1
Solved
I use PhpStorm. I want to make snippets of code and then assign shortcuts to them. I can do it in NetBeans, but in PhpStorm I don't know how to make them.
For example, to add console.log(); in Net...
Quincunx asked 29/3, 2012 at 5:8
1
Solved
At the YASnippet site I noticed the following description of yas/triggers-in-field :
If non-nil, yas/next-field-key can trigger stacked expansions, that is
a snippet expansion inside another snipp...
Nakada asked 4/3, 2012 at 17:2
1
Let's assume that I have
snippet A
snippet B
where snippet A contains snippet B n times with n > 1.
Right now I have copied the content of snippet B into snippet A. This has the disadvantage,...
Headless asked 12/8, 2010 at 11:48
1
Solved
I am trying to create a small custom snippet for my C# code in VS2010. It basically inserts a comment block for informational purposes. Within this code though I want the current date to be automat...
Spectroheliograph asked 28/1, 2012 at 20:51
1
I was wondering if there is an easier (or just any) way to declare functions in PHP files. For example, let's say we have following function:
function myfunc($parama = '', $paramb = 0) {}
Would ...
Illegalize asked 27/10, 2011 at 7:6
1
Solved
In VS, to use snippets (for example auto-implented property) I typed "prop", then hit TAB twice.
However R# (I'm using R#6) inserts the snippet after ONE tab, causing me to always mistype something...
Canny asked 5/11, 2011 at 9:19
1
Solved
How can one save / restore user created code snippets in Xcode?
Palpebrate asked 12/9, 2011 at 14:43
7
Solved
I apologize for this overly simplistic question, but I can't seem to figure out this example in the book I'm reading:
void f5()
{
int x;
{
int y;
}
}
What are the braces surrounding int y fo...
Resist asked 30/9, 2011 at 15:24
1
Solved
I've really enjoyed Anders Hejlsberg presentation at BUILD 2011 and it's not the first time that I notice someone having a collection of code snippets available within Visual Studio's Toolbox windo...
Funiculate asked 27/9, 2011 at 18:24
3
Solved
When I hit /// in Visual Studio, is it possible to change the resulting snippet from this:
/// <summary>
///
/// </summary>
to this?:
/// <summary></summary>
Indiscerptible asked 15/12, 2008 at 17:30
1
Solved
Trying to determine when to use a snippet and when to use a template, since they all seem to be able to accomplish the same thing.
Is one better for performance or such, or are they completely dif...
Cravat asked 24/8, 2011 at 14:45
7
Solved
I need to count the number of lines of code within my application (in PHP, not command line), and since the snippets on the web didn't help too much, I've decided to ask here.
Thanks for any ...
Argueta asked 2/12, 2010 at 19:0
© 2022 - 2024 — McMap. All rights reserved.