Skip to main content

Questions tagged [snippets]

The tag has no usage guidance.

1 vote
0 answers
635 views

Rofi/dmenu alternative for Windows 11 for pasting snippets from a list

I'm looking for a tool on Windows 11, which I could use to launch some sort of a finder, search among text snippets I have previously configured and paste the selected one to where my cursor was when ...
fbence's user avatar
  • 113
1 vote
1 answer
4k views

Copying text from PDF file doesn't keep indentation or formatting

I get a problem whenever I try to copy/paste code snippets from a PDF file, the pasted code doesn't keep the indentation which is a big problem in Python. This is the source: Here's what gets pasted: ...
Ehab's user avatar
  • 113
1 vote
1 answer
1k views

How can I load external snippet files into Visual Studio Code?

I have a bunch of useful snippets that I want to share with my team. Ideally I'd put these on our network storage and have everyone's Visual Studio Code installation point to that file/folder, but as ...
MMM's user avatar
  • 2,886
6 votes
2 answers
7k views

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's user avatar
  • 1,152
0 votes
0 answers
347 views

Insert snippet until end of line in Visual Studio Code

I'm trying to add a comment snippet in Visual Studio Code that should add dashes until the end of the column, however depending on the indentation the amount of dashes should be different. The snippet ...
Marc's user avatar
  • 161
-1 votes
2 answers
215 views

Edit HTML Snippet Suggestion VSCode

I really do not understand this snippets and Emmets things and my English is very bad. when i hit space in blank HTML file a windows is shown and when i hit enter write HTML starting point and its ...
Fakhamatia's user avatar
7 votes
1 answer
6k views

Turn off text replacement on macOS

I use text replacement and 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 ...
luciano's user avatar
  • 379
0 votes
1 answer
73 views

VisualStudio 2017: Find where a code snippet is coming from

I have a few extensions, and seems like one of them introduced a code snippet that is really annoying. I use prop for making properties a lot, but now it also suggests this public readobly object p; ...
LLL's user avatar
  • 303
0 votes
1 answer
567 views

howto view with curl meta data (search engine rich snippet)?

When I search for "slashdot", Google present me this rich snippet: How to view the meta data definition with curl? For example: curl https://slashdot.org/metadata.rdf. Is there some standard location ...
Sybil's user avatar
  • 880
3 votes
1 answer
1k views

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's user avatar
  • 2,625
3 votes
1 answer
634 views

Sublime paste in snippet

I have got a sublime snippet to get console.log in js who look like that : <snippet> <content><![CDATA[console.log('$1', $1);]]></content> <tabTrigger>cl</...
Xavier Haniquaut's user avatar
1 vote
1 answer
227 views

Dynamic Text Snippets?

Suppose my snippet is: <snippet> <content><![CDATA[ 1example \> ]]></content> <tabTrigger>1e</tabTrigger> <scope>text.tex.latex</scope> ...
blackened's user avatar
  • 251
0 votes
1 answer
325 views

Make sublime auto-insert semicolon after colon in SCSS files just like it does with CSS?

Sublime auto-inserts a semicolon after typing a colon in CSS files, but not in SCSS files. I would like this behavior.
Marcus Plimsoll's user avatar
1 vote
0 answers
536 views

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, ...
godblessfq's user avatar
1 vote
1 answer
560 views

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 "...
beesteak's user avatar
  • 115
1 vote
1 answer
534 views

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 > ...
Green's user avatar
  • 647
1 vote
1 answer
145 views

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 ...
HamsterWithPitchfork's user avatar
0 votes
1 answer
148 views

Turn off snippets in mavericks

A new feature in Mavericks in text expansion snippets. These are syncing from from my iPhone. Is there a way to turn them off in Mavericks?
luciano's user avatar
  • 379
0 votes
2 answers
586 views

Vim snippets pop-up but don't complete

I'm using spf13-vim in Fedora. When I try to use a snippet, I get options that pop up but when I don't know how to actually insert the snippet. For example, if I type for in a .cpp file, I get four ...
user327301's user avatar
1 vote
1 answer
124 views

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 ...
Jan's user avatar
  • 11
0 votes
1 answer
840 views

How do I install snipMate?

I have downloaded snipMate.zip form vim.org. The install instruction says that: unzip it and paste it in .vim directory. There should be :filetype plugin on in .vimrc file I have did both but non ...
Santosh Kumar's user avatar
1 vote
0 answers
31 views

Add code snippets to Notepad++ context menu [duplicate]

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's user avatar
  • 1,074
1 vote
1 answer
900 views

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 ...
Tuxmentat's user avatar
  • 2,179
1 vote
1 answer
1k views

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 ...
Chris Schmitz's user avatar
1 vote
1 answer
580 views

gedit snippets are not activated?

I want to use facility of gedit to insert snippets. The documentation suggests (doc): Using snippets Install the plugin. Menu: Tools -> Manage Snippets. A dialog will appear and you can start add ...
Timofey's user avatar
  • 1,341
4 votes
1 answer
181 views

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. ...
Florian's user avatar
  • 213
5 votes
2 answers
4k views

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 ...
Konzepz's user avatar
  • 795
1 vote
2 answers
2k views

Advanced Terminal / Console apps for Mac OS X?

I use a lot of command line programs, very often with similar arguments. Can anyone recommend an application or a workflow that allows me to store often used shell commands and search through my ...
Jakob Egger's user avatar
1 vote
1 answer
486 views

Snipmate plugin in vim inserts a carriage return in all snippets

I'm using snipmate plugin in vim, and started creating some snippets to use in Zope. Unfortunately, the snippets I'm creating are some html attributes, and everytime I call the snippet, it works as ...
Somebody still uses you MS-DOS's user avatar