Questions tagged [snippets]
The snippets tag has no usage guidance.
29
questions
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?
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 ...
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:
...
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 ...
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 ...
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 ...
-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 ...
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; ...
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</...
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 ...
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/...
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 > ...
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>
...
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.
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, ...