code-snippets Questions

18

I checked the preferences settings in my Eclipse, it's all set to default with sysout option on, but when I typed sysout in eclipse, it won't automatically go into System.out.println(). I've checke...
Remittee asked 2/8, 2013 at 22:59

11

Solved

I am coding a React page with VS Code. Suddenly, some snippets like rfce started not working even if it's never given me problems. I don't know what's wrong. picture of before picture of now What...
Nun asked 9/2, 2021 at 11:23

7

I did a fresh install of Visual Studio 2022 v17.0.0 (.NET 6.0) and created a new WebAssembly project. Tried editing Counter component but none of the snippets work for C#. Typing cw is supposed to ...
Sestertium asked 10/11, 2021 at 18:18

10

Solved

I've been documenting a software package using Sphinx and reStructuredText. Within my documents, there are some long code snippets. I want to be able to have them hidden as default, with a little...
Looney asked 16/3, 2010 at 13:19

8

Solved

Is there a way to remove or edit some of the default code snippets in Visual Studio CODE ? For example when i type req+TAB i need require not requestAnimationFrame
Vltava asked 18/10, 2016 at 14:10

8

Solved

Does anyone know of a robust (and bullet proof) is_JSON function snippet for PHP? I (obviously) have a situation where I need to know if a string is JSON or not. Hmm, perhaps run it through a JSON...
Rudie asked 27/7, 2009 at 10:59

30

Solved

A function to return human readable size from bytes size: >>> human_readable(2048) '2 kilobytes' >>> How to do this?
Inducement asked 7/7, 2009 at 20:59

3

I'm utilizing a Macbook pro running "El Capitan" and RStudio is version 0.99.902. I'm writing a Rmd document. I want to utilize the snippets that RStudio has built in and create my own also. By cli...
Swound asked 10/6, 2016 at 12:38

4

Solved

What function will let us know whether a date in VBA is in DST or not?
Samala asked 25/9, 2008 at 0:56

4

Solved

We can iterate through collection easily by pressing Ctrl+Alt+T, And then I wanted to create such template for iterating through map: I wrote these lines to template text box: for (Map.Entry<...

4

Solved

Is there any keyboard shortcut for '// MARK:' in swift like there is for header doc '/// Description' ?
Sullivan asked 8/6, 2017 at 10:3

4

I want to use a 'for' snippet for example. I write for and press tab twice so it autocompletes to the whole for loop and selects the counter so I can change it. I change that and then press tab to ...
Begird asked 27/12, 2016 at 15:44

2

Solved

It seems when using PHP variables like $_SERVER the code snippet ignores the $. For example { // Example: "IP Address Test": { "scope": "php", "prefix": "iptest", "body": [ "// Debugging", "i...
Supernumerary asked 19/7, 2019 at 0:43

3

Solved

https://code.visualstudio.com/docs/editor/userdefinedsnippets#_placeholdertransform My aim is to automatically set the class name within the context of the snippet being inserted. VSCode does not ...
Bast asked 18/10, 2018 at 13:16

8

Solved

What method do you use when you want to get performance data about specific code paths?
Zerla asked 14/9, 2008 at 11:24

17

Solved

I have seen some people creating properties in C# really fast, but how did they do it? What shortcuts are available in Visual Studio (currently using Visual Studio 2010) to create proper...
Stolen asked 6/10, 2010 at 9:48

4

Solved

I use vim and snipmate a lot for my python programming. It would be ideal if I could have a snippet system for the bash command line. Right now I use the gnome terminal in ubuntu... For instance, ...
Shorts asked 8/2, 2012 at 2:10

3

Solved

Is it possible to replace text in a Visual Studio Snippet literal after the enter key is pressed and the snippet exits its edit mode? For example, given a snippet like this: public void $name$ ...
Semang asked 20/10, 2009 at 17:10

6

When I follow all the instructions (including apple's video) to drag text to create a code snippet in xcode, I get a different system behavior: all I see is the selection ibeam... I can't drag. It ...
Vegetal asked 1/6, 2011 at 19:7

13

Is it possible to add custom code snippets in Visual Studio Code? And if so, how? VSCode is based on Atom, so it should be possible.
Citify asked 1/5, 2015 at 22:7

9

Solved

I always find myself needing to enclose a block of code in curly braces { }, but unfortunately that isn't included in the C# surround code snippets, which seems to be an oversight. I couldn't find ...

5

For example, it just returns the snippet around which the searching keyword exists. And part of the text is replaced by "...". Is it possible to achieve that goal with PHP and MySQL?
Pseudoscope asked 18/8, 2009 at 6:26

4

Does anybody know what the shortcut is for React functional components snippet in WebStorm? So far I only found shortcut for class components.

1

Im making an extension and I'm curious is it possible to add a search filter/box to a tree component? Im currently coding the extension in javascript but im not sure if its possible or not This is ...
Indignant asked 24/1, 2021 at 21:39

2

Solved

i used _rfce 2days ago, but it disappeared suddenly... i installed ES7+ React/Redux/React-Native snippets v4.1.0 and this is not disable. also nothing have _blah _blah..
Amidst asked 22/1, 2022 at 12:57

© 2022 - 2024 — McMap. All rights reserved.