1,931 questions
0
votes
0
answers
40
views
Deposit field ONLY for BACKORDER ITEMS [duplicate]
I'm trying to add a deposit option just for backorder items, I found this code on here but still show's up for ALL items, not just BACKORDER, I'm trying to fix this
add_action( '...
1
vote
4
answers
2k
views
Flutter snippet didn't work in statefull widget android studio
i dont know, after flutter 3.0.0 update, i can't use snippet in android studio. maybe i can, but inside a function. i cant easily import material.dart. but i used snippet in it worked (i can use ...
0
votes
1
answer
23
views
Can Atom Editor snippets be composed for expansion
Does there exist some inclusion mechanism whereby snippet expansion results in the expansion of other snippets?
For example, something along the lines of:
'Part 1' :
'prefix': 'part1'
'body' : '...
0
votes
2
answers
954
views
vs code snippet: how to use variable transforms twice in a row
See the following snippet:
"srcPath":{
"prefix": "getSrcPath",
"body": [
"$TM_FILEPATH",
"${1:${TM_FILEPATH/(.*)src.(....
1
vote
1
answer
75
views
Visual Studio Code 1.67.1 - Fails to provide any choices when using snippets
results:
failed choices in VSC
snapshot.code-snippets (code)
"Wait4widget": {
"scope": "javascript",
"prefix": "wait4widget",
"body&...
1
vote
1
answer
2k
views
How to change TM_FILENAME_BASE when creating snippets in vs code?
I have a file named "Card.styled.js"
I want to create a snippet to write easier the styled component:
"styled": {
"prefix": "styled",
"body": [
...
1
vote
0
answers
157
views
Can't insert custom snippets in RStudio
I recently came to know about the RStudio snippet and am trying to implement it to make my code look neat. I created the following snippets via the Edit Snippets button in Global Options -> Code
...
1
vote
0
answers
165
views
Hide html element if not post author - Wordpress, PHP
New to PHP, struggling to complete a function snippet that would hide an html element on the post if the current user is not author.
This is what I have so far:
function post_hide_edit_button() {
...
0
votes
2
answers
2k
views
Add a for-loop to VSCode Snippet
I successfully created 3 VSCode snippets, I added the 4th one.
{
"for": {
"prefix": "for",
"body": "for (i = 0; i < ${1:}.length; ...
0
votes
0
answers
67
views
Where can I edit the CSS default snippets file of VSCode?
I found php.code-snippets in C: \Users \yourname \AppData \Local \Programs \Microsoft VS Code\snippets but where is the CSS file?
I want to modify my snippets because vscode doesn't add the semicolon ...
1
vote
1
answer
953
views
Is there a way to create and use PowerShell snippets in Visual Studio 2022?
I do a lot of Winforms and WPF GUI design in Visual Studio and then further perfect my form in Visual Studio Code. (I'm using PowerShell Pro Tools from Ironman Studios)
In VSCode, it's extremely easy ...
0
votes
1
answer
364
views
How to pass User First Name & ID in a Javascript tag in WordPress Backend?
I am trying to connect usetiful to my WordPress Backend.
I need to tag the users and pass information to Usetiful for further personalization.
After going through various similar Q/A threads, I ...
0
votes
1
answer
1k
views
Unity hover documentation in Visual Studio Code
I want to use Visual Studio Code as my editor for c # code in Unity and I want to hover over the code to display a short description of what, for example, the method does.
I found this thread but I ...
0
votes
0
answers
309
views
best practice nginx Load balancer snippet annotation
I want to run the Load balancer and modified the configuration with snippet annotation.
nginx.ingress.kubernetes.io/configuration-snippet:
here
which will divide the request equally. I have 4 nodes ...
4
votes
1
answer
3k
views
MS Teams - Code Snippet reformatting issue
Whenever I create a code snippet in Microsoft Teams (Mac desktop app) using 3 backticks, the spacing is stripped and text gets reformatted. This is different than the 'Code Snippet' menu item - format ...
0
votes
1
answer
90
views
How to set image dimension pre-requisit upload into WPForms?
I would like to know if there's some snippet or code for letting users upload images with certain dimension like 1200x1200 px
0
votes
1
answer
740
views
Django CKEditor Code Snippet not rendered correctly
I am building a Django blog that supports code snippets for both post and comments. The following is my CKEditor config in settings.py
CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'full',
...
2
votes
1
answer
246
views
Building an web app to run inside other apps through a JS code-snippet
I was given the task to develop sliders/pop-ups for customers of the company I work for. This works a bit like chatbots (ie. Intercom). The user sees a small bubble on the bottom-right corner, clicks ...
1
vote
1
answer
790
views
VSC snippets placeholder choices not loading
As the title says, I'm having problems with VSC's snippets placeholder choices as it gets stuck loading and I never get any of the options.
At the moment I'm testing with a really simple snippet:
&...
0
votes
0
answers
81
views
Is there a way to pass a parameter to sublime text3 insert snippet using tab trigger?
Good day.. There is this thing I would like to do in snippet (Sublime Text 3), something like this.
<tabTrigger>CHOICE+VARIABLE</tabTrigger>
so that when I trigger something like
CHOICE5
...
0
votes
1
answer
706
views
what makes my code snippet not working at all in vscode?
above is what I saw in tutorial video...it says many snippets so developer can use it
but as to my vscode...I can't select any function ! even on extension I installed many unity code snippets...
1
vote
0
answers
37
views
Disable out of stock options on a single product
I have an online store that sells retail fabric by length and I have been looking for a solution for distracted consumers when they try to buy an out-of-stock length (for instance, there are only 2 ...
1
vote
2
answers
380
views
vscode snippets: How to link a position in the snippet to a tabstop?
I want to create a snippet that prints the value of a variable for debugging purposes. this is what I came up with:
{
"Debug": {
"prefix": ["db"],
"body&...
0
votes
1
answer
614
views
How to Format Python code as Python snippets on stack overflow? [closed]
How to format Python code as Python snippets on stack overflow since we can only do it as JavaScript or HTML or CSS snippets?
-2
votes
1
answer
935
views
How to insert 2 php files to code snippet?
I found the following site https://funnelpress.com/elementor-post-not-found-content/
It has two codes but I want two insert them in the 'code snippets' plugin in wordpress.
Can somebody help me how to ...