Question: There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled. Does anyone know of some short/simple ways to ...

Question: I want to tranform filename-with-dashes.md to Filename with dashes in a Vscode snippet To be precise, I want to populate the field "title" in this snippet, from a filename similar to firt-post-ever.md and get First post ever: What I ...

Question: can you help me with the code below? I need to hide price for specific category but on shop and category pages, not on product detail or admin. I need to add is_product_category() and is_shop() code but have no ...

Question: I want to create a snippet that prints the value of a variable for debugging purposes. this is what I came up with: When I use this snippet cursor goes between the quotes ( | is the cursor position): ...

Question: Consider the following TypeScript snippet: When trying to compile this snippet in VS Code or in the TypeScript playground, I get the following error: Type ‘string’ is not assignable to type ‘boolean’ Which I don’t really understand. What’s really ...

Question: Is there a way to get all files embedded in gitlab snippets using curl command? Using the following command I only get the first file. Since the snippet gathers 3 files I would like to download them all. Answer: ...

Question: 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: And the previous snippet ...