Comments (5)
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!
from vscode-surround.
Yup the double slash did the trick thx for the support!
from vscode-surround.
Hmm could you please try the snippet below:
"surround.custom": {
"yourCommandName": {
// label must be unique
"label": "Your Snippet Label",
"description": "Your Snippet Description",
"snippet": "\\$start = microtime(true); { $TM_SELECTED_TEXT }$0 \\$time_elapsed_secs = microtime(true) - \\$start" // <-- snippet goes here.
},
}
You just need to escape the dollar signs.
from vscode-surround.
I already tried that but then it just doesn't write the $
from vscode-surround.
Did you try the snippet I just shared? It worked for me... If you still have the problem, could you share your configuration?
from vscode-surround.
Related Issues (20)
- How do I use $_GET[ HOT 1
- surround with element not showing in jsx (.js) files... HOT 1
- Placeholders are not working for multiple selections HOT 1
- Add surround to formatter category HOT 1
- Setting to turn off new indentation behavior (in 1.2.0+) per-snippet HOT 2
- Not adhering to selected text HOT 2
- Multi selection is no longer supported starting from version 1.2.0 HOT 3
- Remove `multi selection` reference from readme HOT 1
- Extension Setting for Notifications HOT 2
- [Feature Request] Add a way to customize placeholder variables HOT 3
- all language support plan HOT 1
- [Feature Request] Add settings for curly braces on new line
- Snippets not inserted when nothing is selected HOT 7
- Add Browser Support
- Custom snippet list is broken after first surround HOT 2
- Consider switching to another activation event policy HOT 1
- extençao com problema
- need some help HOT 1
- surround w template literal variable working as intended? HOT 1
- Feature request: adding `new Promise` surround
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-surround.