Add param block snippet
See original GitHub issueSummary of the new feature
On my stream with Scott Hanselman, he wasn’t sure on how to write a param block because we have snippets for individual parameters, not param blocks.
I’d be nice to have a snippet of a param block, with a parameter inside.
Proposed technical implementation details (optional)
Take the current parameter
snippet, and wrap it in a param block and call it the param-block
snippet.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Snippets in Visual Studio Code
Snippets in Visual Studio Code. Code snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements....
Read more >javascript - How can I add or update a query string parameter?
I wrote the following function which accomplishes what I want to achieve: function updateQueryStringParameter(uri, key, value) { var re = new RegExp("([?
Read more >Using AMPscript Variables in Code Snippet Blocks - YouTube
In the third episode of this series you will learn how to use code snippet blocks to organize your AMPscript code.
Read more >PHP Add and Remove Query String Variables - WP-Mix
Add Query String Variable This function accepts three variables: $url – URL to which the query-string variable should be added. $key – query- ......
Read more >Code Block Macro | Confluence Data Center and Server 8.0
Add a Code Block macro to your page to display code examples with syntax highlighting. This is great for sharing code snippets such...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think there’s a difference between a “teaching” style snippet and a “productivity” snippet. The above, as a productivity snippet, wouldn’t work for me because I’d end up deleting more stuff than I would have typed in the first place. For me, this would be a productivity snippet:
Something like this: Note where the
$0
moved to.