Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
11 views

I recently learned about making snippets in Visual Studio and can make simple replacement ones and understand what's going on. However I saw this Make a vscode snippet that can use a variable number ...
Nihilum's user avatar
  • 65
0 votes
0 answers
31 views

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 ...
陈海斌's user avatar
0 votes
1 answer
55 views

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 ...
wjandrea's user avatar
  • 34k
0 votes
1 answer
65 views

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 ...
Mieke's user avatar
  • 1
2 votes
1 answer
83 views

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#" ...
Plumar's user avatar
  • 23
1 vote
1 answer
391 views

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")....
Radwa Hamdy's user avatar
0 votes
2 answers
101 views

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 ...
SteinTech's user avatar
  • 4,144
4 votes
1 answer
532 views

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 ...
Zaggo's user avatar
  • 836
0 votes
0 answers
42 views

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 ...
РѕуVеtеrаn's user avatar
1 vote
1 answer
72 views

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 ...
Abdulsalam Elsharif's user avatar
0 votes
0 answers
76 views

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/...
Fire iest's user avatar
0 votes
1 answer
48 views

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 ...
spubby's user avatar
  • 98
1 vote
1 answer
102 views

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 ...
Dan's user avatar
  • 135
0 votes
0 answers
89 views

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 ...
Faïza Fehri's user avatar
4 votes
2 answers
282 views

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. ...
TarJae's user avatar
  • 80.2k
0 votes
1 answer
51 views

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...
Mr.Black's user avatar
  • 463
0 votes
1 answer
82 views

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 ...
이병옥's user avatar
1 vote
0 answers
89 views

Upon integrating the snippet into the File Upload WPForm for images and videos, it successfully initiates a page refresh to reset all form values and present a confirmation message upon submission. ...
Punisher's user avatar
0 votes
1 answer
81 views

I want to create a VS Code snippet that uses the choices feature: "Fool's Dart Types": { "scope": "dart", "prefix": "foolsTypes", ...
Code on the Rocks's user avatar
1 vote
1 answer
45 views

Running code snippet using "Run code snippet" button and clicking "Open menu" button does nothing. It should open menu. Menu is defined in other place in DOM and display is set to ...
Andrus's user avatar
  • 28.2k
2 votes
2 answers
76 views

I'm trying to make a snippet with multiple choices and I need only one of the choices to have a subset of choices after selecting it. For Example: "Basic Furniture": { "prefix":...
ZombieAce's user avatar
0 votes
0 answers
31 views

I'm creating some snippets for both VS and VS Code, and I would love all the features from the VS Code ones in VS. And the ability to define file extension types instead of just language. Is it ...
SteinTech's user avatar
  • 4,144
0 votes
1 answer
62 views

I’ve been searching for PHP solutions related to WooCommerce, but nothing I've found has worked for my specific requirements. Here’s the background on my situation: I need wholesale users to meet a ...
SeoPaul's user avatar
0 votes
1 answer
90 views

After a recent update of either Visual Studio 2022 or R#, now when I'm in the xaml editor and I press the tab key, the snippets dialog pops up. This is new behaviour, and is incredibly annoying. Can I ...
Pete's user avatar
  • 1
0 votes
1 answer
43 views

I want to replace ${TM_FILENAME_BASE} with ${TM_DIRECTORY} if ${TM_FILENAME_BASE} is init I tried this snippet. It works for all files not named init, otherwise the output is -- Name: $TM_DIRECTORY { ...
AlreadyPro's user avatar
1 vote
0 answers
1k views

I try to write some custom snippets. For that I install and configure Luasnip in my nvim.cmp. Also installed rafamadriz/friendly-snippets So far it is ok; means autocompletion shows snippets from ...
Michel Lecomte's user avatar
1 vote
1 answer
216 views

I have just updated Visual Studio 2022 from version 17.10.6 to the latest version (17.11.2) and noticed that my C++-snippets stopped working. To make sure, I tested it on my laptop with the same ...
Markstar's user avatar
  • 943
0 votes
1 answer
53 views

I have a function that loops all Woocommerce subcategories for the current category. Inside the subcategory loop there is an advanced-custom-field that is supposed to display an icon. But I do ...
perqedelius's user avatar
1 vote
1 answer
79 views

I'm looking for behaviour similiar to JB Rider. When contructing object through initializer there's an option to generate all public property assignments. Is there a way to add this feature to vs code?...
SkySurfer's user avatar
  • 521
0 votes
1 answer
90 views

I would like to make an algorithm, which can detect code snippets when iterating through source codes, based on some hashing algorithms. So for example, here is that short code snippet from a fragment ...
Fox1942's user avatar
  • 376
1 vote
0 answers
15 views

We have promotional text (text A) that we want to embed into in article (text B) at specific different points, e.g. at 25% or 50% etc. The problem is, after adding it, text A is not displaying in text ...
Elanie Van Der Westhuizen's user avatar
0 votes
0 answers
49 views

I am working in Visual Studio 2008 and cannot update due to constraint of my software compatibility issue. I search everywhere on the Internet, read many posts here as well, but no solution found to ...
Vyas07's user avatar
  • 1
2 votes
0 answers
191 views

Recently, I have encountered a new option in Visual Studio 2022 "Show new snippet experience (experimental)" setting in Visual Studio 2022?". It is located in the VS Options: "Text ...
SENya's user avatar
  • 1,492
0 votes
0 answers
22 views

This is my snippet and what I hope to get when I write "html-em" in my html file: { "HTML EM template": { "prefix": "html-em", "body": [ ...
irisk120's user avatar
0 votes
1 answer
84 views

I have WordPress 6.5.2, "Code Snippets" plugin 3.6.4 installed and following snippet code: add_filter( 'big_image_size_threshold', '__return_false' ); but it does not work, WordPress still ...
Dmitrii Vinokurov's user avatar
-2 votes
1 answer
155 views

The code snippet for redirecting the add to cart to the checkout page only works when I press the add to cart on the SINGLE PRODUCT PAGE. It does not work when I click the add to cart button on the ...
Dave Didal's user avatar
0 votes
1 answer
125 views

I need help to escape quotes in jMeter! I've to put into a var some words with quotes, for example "dummy", so I've tried with: vars.put("example", '"dummy"') vars.put(&...
EmanueleAmbretti's user avatar
1 vote
1 answer
207 views

I am planning to replace every line break in my clipboard with a space, followed a vertical bar and then another space. For instance, if my clipboard has the following text: My Clipboard Content the ...
Venti1707's user avatar
2 votes
3 answers
226 views

Dears, I want to delete the old post automatically without using a plugin and the Snippets will be the choice, I want to delete any post older than one day from a special category an using this ...
Ahmed Alnaqa's user avatar
2 votes
1 answer
763 views

I'm trying to create a snippet for vimwiki. The snippet must change __ to current time. local line_begin = require("luasnip.extras.expand_conditions").line_begin return { s( {...
Kit Lessenger's user avatar
0 votes
1 answer
137 views

I'm new in PyCharm IDE and I'm now personalizing my code snippets (Live Templates | Postix Completion) but don't know the syntax and limits of which. I've seen there is a Postfix Completion whose ...
Daniel Sánchez's user avatar
0 votes
1 answer
153 views

I followed THIS tutorial to change the coupon field and button text, using the following script in a Code Snippet: /** * Change the CartFlows Coupon Field text and Button text. * * @param array $...
tbo812's user avatar
  • 45
0 votes
1 answer
26 views

is there a solution to create a snippet in sublime text where the value can have several methods (choices) . For example , in Python a list can have multiple methods (append , clear , copy) . It's ...
Julio Ludovic Ramihone's user avatar
1 vote
1 answer
374 views

I am trying to add custom javascript into my website for a widget on wordpress using the wpcode plugin but I keep getting an unexpected token error. There is a already created that isn't accessible ...
TJ Cullen's user avatar
1 vote
0 answers
539 views

is there any possibility to add a css code snippet that contains multiple elements or tags with their styles in vs code. i already have an idea about the basic way that adds just the properties and ...
Ayoub El Haraoui's user avatar
2 votes
1 answer
4k views

I'm working on setting up my Neovim configuration for development, specifically focusing on integrating nvim-cmp for autocompletion and LuaSnip for snippet support. However, I'm encountering an issue ...
Mark Johnson's user avatar
0 votes
1 answer
295 views

Is there a way that I can create my own custom snippets for Blazor files in Visual Studio 2022? I'm able to create custom snippets for C# using <Code Language="CSharp"> in the .snippet ...
bill_dom's user avatar
0 votes
1 answer
141 views

I tried so many ways but I didn't achieve to do it . I can't use html snippets inside of cshtml razor page and it sucks.I don't wanna use VS Code to write ASP.NET MVC because I'm used to use Visual ...
kubicix's user avatar
0 votes
1 answer
436 views

I have a color metafield on my shopify store, where inserting a specific color should reflect on both the website and phone devices simultaneously. Each color swatch is associated with an image tile ...
Hasan Mougharbel's user avatar
1 vote
0 answers
113 views

I edit the built in code snippet propdp for personal preferences. My problem is that Visual Studio updates reset the edited propdp to its default. I could add a custom snippet with the same shortcut ...
Andrew KeepCoding's user avatar

1
2 3 4 5
39