1,933 questions
 
 - Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
 
 -1
 
 votes
 
 
 
 0
 
 answers
 
 
 
 31
 
 views
 
 
 
 Remove product on WooCommerce checkout page block
 I would like to have a button to remove a product on the WooCommerce checkout page, but unfortunately the code snippet below isn't working anymore with the new WC blocks setup. Any idea how to get it ...
 
 
 
 
 
 0
 
 votes
 
 
 
 1
 
 answer
 
 
 
 50
 
 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
 
 
 
 66
 
 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
 
 
 
 270
 
 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
 
 
 
 99
 
 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
 
 
 
 353
 
 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
 
 
 
 37
 
 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
 
 
 
 69
 
 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
 
 
 
 63
 
 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
 
 
 
 36
 
 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
 
 
 
 96
 
 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
 
 
 
 74
 
 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
 
 
 
 252
 
 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
 
 
 
 46
 
 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...
 
 
 
 
 
 0
 
 votes
 
 
 
 1
 
 answer
 
 
 
 64
 
 views
 
 
 
 
 
 VS Code snippet - how to get the relative_filepath without the file extension
 How can I get the relative_filepath without the extension and backslash change ?
I found two transforms:
"${RELATIVE_FILEPATH/[\\]/\//g/}"
"${RELATIVE_FILEPATH/(.js)//}"
If the ...