1,931 questions
0
votes
0
answers
31
views
Custom LaTeX snippets intermittently trigger multi-cursor mode in VS Code 1.104.2
The video that shows the problem
I am experiencing an intermittent issue where triggering custom user snippets in VS Code causes the editor to unexpectedly enter multi-cursor mode.
Environment
VS ...
0
votes
1
answer
53
views
Is there a quick way to edit snippets for the current language?
When I want to add a snippet for the current language, I open the command palette, type "snippet", go "Configure Snippets", then I have to select the language even though the file ...
0
votes
1
answer
62
views
Automatically enable sold individually product settings
In WooCommerce, I'm selling only simple downloadable/ virtual products which can only be sold once per client.
I found a snippet on stackoverflow (Automatically enable virtual and downloadable product ...
2
votes
1
answer
81
views
How can I limit my code snippet to only show up in the intellisense ddl when typing the shortcut
I've recently created my first code snippet and the problem I'm having is that whenever I go to surround my code with something, instead of automatically selecting the usual "Visual C#" ...
1
vote
1
answer
356
views
How to create custom snippets using luasnip
I want to make my custom snippets in latex files. I am using luasnip and this is my config:
{
"hrsh7th/nvim-cmp",
config = function()
require("luasnip.loaders.from_vscode")....
0
votes
2
answers
100
views
Custom HTML snippet in Visual Studio only prints default values
I have an HTML snippet which adds a Label and Input element. But when I invoke the snippet, it doesn't let me alter the literal's, it just adds the tags with default values.
I made a different snippet ...
3
votes
1
answer
475
views
How to open the code snippets window in Xcode26?
In the Xcode26 beta (currently beta 2) the "+" Button to open the code snippets window in the window title bar is gone.
There is still a "Create Code Snippet" menu point in the ...
0
votes
0
answers
39
views
Python tempfile SpooledTemporaryFile write to a gzip without writing to disk where possible?
I am trying to create a snippet of Python code that first writes a possibly large text file (think csv) to a SpooledTemporaryFile in memory. Then that spooled file is compressed with gzip. While some ...
1
vote
1
answer
72
views
Code snippets appears as a second choice in C#
Code snippets are easier to enter repeating code patterns, such as loops or conditional statements. In VS Code, the code snippets appear as the second choice, so I can't use Tab to generate code ...
0
votes
0
answers
72
views
configure autocomplete snippits in nvim for .hbs file
How do I configure autocomplete snippets for .hbs (Handlebars) files in Neovim using the NvChad framework?
I'm using Neovim with the NvChad configuration framework, and I want to enable autocomplete/...
0
votes
1
answer
44
views
How do you do multiple regex replacments in an UltiSnips snippet in vim?
I am trying to create a snippet for a LaTeX section that automatically fills in the label. I'd like the label to replace special characters and convert uppercase characters to lowercase characters. I ...
1
vote
1
answer
101
views
Using a bash terminal to list gitlab "snippets"
I'm trying to list "snippets" but everything I've found so far only refers to listing repos.
In gitlab there's a submenu, "snippets", where we occasionally need to pull new code ...
0
votes
0
answers
88
views
Need Help Adding a MailerLite Popup Form to My Next.js App
I'm trying to add a MailerLite subscription form (a popup triggered by a button) to my Next.js app, but I just can't get it to work.
This is my first time integrating a universal code snippet in a ...
4
votes
2
answers
276
views
How can I use predefined code snippets outside of code chunks in Quarto within RStudio/Posit?
I'm working on a Quarto document in RStudio/Posit where I frequently need to insert recurring formatting code. I've set up some custom code snippets in RStudio that work perfectly inside code chunks. ...
0
votes
1
answer
47
views
How to key bind a snippet in Sublime Text?
I had some trouble figuring out how to add a Key Binding to my new Snippet in Sublime.
This answer may save some people some time...