question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use "$" in custom snippet

See original GitHub issue

I am trying to create a snippit for time logging of a function

$start = microtime(true); { $TM_SELECTED_TEXT }$0 $time_elapsed_secs = microtime(true) - $start;

When i use it it removes the variables (eg $start) i can understand that it works this way but is there any way to show the variable?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
koffielydercommented, Oct 8, 2019

Oh sorry didn’t see the double slash I’ll try it Thursday when I’m back at the office but I’m sure if it works for you it will work for me, thank you for your help and for the plug-in!

1reaction
koffielydercommented, Oct 10, 2019

Yup the double slash did the trick thx for the support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code user snippets not working - Stack Overflow
Go to settings (Windows/Linux: File > Preferences > Settings, macOS: Code > Preferences > Settings) and type in quick in search box and...
Read more >
code snippets not working - Visual Studio Feedback
1.Repair your instance. 2.Remove and re-add all the code snippets with snipped manager. 3.Tools >> Options >> Text ...
Read more >
Custom snippet doesn't work · Issue #33723 · microsoft/vscode
No, the snippet doesn't show up on F1 > Insert Snippet . Snippet doesn't show up on Cmd+Space as well. What does that...
Read more >
Why can't I access the Snippets? - WordPress.org
Hi there,. Can you please check that you don't have the Headers & Footers mode only enabled? If that's enabled you should see...
Read more >
Troubleshoot snippets - Visual Studio (Windows)
You may be missing a project reference. Examine the documentation about the snippet. If the reference is not found on the computer, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found