Questions tagged [snippets]
30 questions
7
votes
1 answer
Turn off text replacement on macOS
I use text replacement on my iPhone, and these are syncing to my Mac via iCloud. But I don't want to use them on my Mac, because I use TextExpander. How can I prevent the text replacement on my Mac, but keep the text replacement on my iPhone?
Text…
luciano
- 399
- 5
- 9
- 16
6
votes
2 answers
How do I create a Code Snippet in MS Teams using a Keyboard Shortcut
In MS Teams, it is common to need to share code snippets quickly. Is there a keyboard shortcut that displays the code snippet editor?
dmcgill50
- 1,152
5
votes
2 answers
How to work with Vim + Pathogen + SnipMate?
The problem with working out SnipMate under Pathogen is basically in adding new snippets, or a separate snippet bundle under the /bundles directory.
Any ideas regarding a working configuration of this problem?
Konzepz
- 795
4
votes
1 answer
Software which stores and "pastes" snippets running under Windows 7
I'm looking for a tool which can create, manage and store snippets. Moreover I want this tool can "write" snippets in any text-editor : notepad, SQL Server Management Studio, Visual Studio, Word etc. when typing shortcut.
For example,
I create a…
Florian
- 213
3
votes
1 answer
How to create new JavaScript snippet for Sublime Text 3?
I want c to trigger console.log()
The snippet I created has the correct syntax below and is in the correct folder paths according to these articles: http://www.hongkiat.com/blog/sublime-code-snippets/ |…
Leon Gaban
- 2,855
3
votes
1 answer
Sublime paste in snippet
I have got a sublime snippet to get console.log in js who look like that :
cl
text.html,source.js
…
Xavier Haniquaut
- 141
1
vote
1 answer
Dynamic Text Snippets?
Suppose my snippet is:
]]>
1e
text.tex.latex
and suppose I need several other similar snippets:
…
blackened
- 261
1
vote
0 answers
yasnippet and evil mode : how to switch to normal mode without exiting the snippet environment
The problem is when I am in a snippet expansion, I hit escape to switch to normal mode, and the snippet is escaped.
How can I make it to behave like this:
one escape only switch to evil normal mode, two consecutive escape exit the snippet…
godblessfq
- 381
1
vote
1 answer
SublimeText3 double-backslash in snippet
I'm using SublimeText3 with LaTeXTools for my LaTeX work and want it to insert a double-backslash+newline when I hit ctrl+enter. Like this:
asdf\\
foobar
I tried inserting the following into "Default (Linux).sublime-keymap":
{
"keys":…
beesteak
- 115
1
vote
1 answer
How to create a snippet in Sublime Text 3 on Windows 8.1. Snippets do not trigger
I cannot create a working snippet in ST3 on Windows 8.1. tabTrigger just doesn't print anything.
For instance, I want to create a snippet @mixin for .scss files. Here is how I create it.
Tools > New Snippet...
A new untitled file is opened that…
Green
- 687
1
vote
1 answer
MS Word custom style displays white separator lines
I am trying to setup a custom style within MS Word 2013 that would display code snippets. So far everything is alright, except there are white separator lines on every 2nd line. I have searched quite a bit, but I cannot find the option that would…
1
vote
1 answer
Multible names for snippet in snipmate
I'm wondering if it possible to have a snippet with several names. For example a snipped for a title which can be expanded using title and ti. Of course it would be possible to add it twice, for each name once, but that's not what I'm looking for.
Jan
- 11
1
vote
0 answers
Add code snippets to Notepad++ context menu
Possible Duplicate:
Remove/Delete current line in Notepad++
Possible?
Basicly i want to add some of my most used commands by modifying shortcuts.xml and contextmenu.xml
TMRW
- 1,074
- 4
- 17
- 28
1
vote
1 answer
Snipmate + Pathogen + Git - Custom Snippets don't work on Windows
Here is my setup:
My .vim directory is under source control with git
I use Pathogen for managing my plugins
My SnipMate plugin is a git submodule under .vim/bundle/snipmate
This means I can't really edit the snippets in…
Tuxmentat
- 2,189
- 1
- 12
- 8
1
vote
1 answer
How do you use snipMate HTML snippets in a PHP file without changing filetype?
Is it possible to use HTML snippets with Vim's snipMate plugin in a PHP file without changing the filetype? I'd like to be able to use the HTML snippets in my PHP files because a lot of times I am working in views where I need to use a lot of HTML…
Chris Schmitz
- 205