Skip to main content

Questions tagged [snippets]

The tag has no usage guidance.

1 vote
0 answers
618 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
990 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,876
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
214 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
  • 369
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
563 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,615
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
535 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
558 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

15 30 50 per page