Comments (9)
See https://github.com/plibither8/vscode-remove-comments/blob/master/src/parser.ts
from vscode-snippet.
I believe @dbeniamine (the author of the Vim plugin) could help you with this issue, at least he could give you some info about his approach.
from vscode-snippet.
Hi @mre,
It would be nice to be able to toggle the comments off/on (for one snippet).
It is possible to fully disable comments completely, but it is not the same,
because usually, you want to get an answer with the comments, read them, and then remove them if you don't need them.
I agree with you, in the vim plugin I implemented this by two means :
- There is a variable to enable and disable globally comments (witch you already have)
- I keep locally a query history, and give the possibility to replay the last query toggling comments
I hope this can help you
from vscode-snippet.
- I keep locally a query history, and give the possibility to replay the last query toggling comments
So smart! I'll go with this implementation. Thanks for the tip!
from vscode-snippet.
you're welcome ;)
from vscode-snippet.
I've develop a message box to ask if the user wants to display comments in a query if the query was already searched before by using the extension permanent cache.I think that it would be more useful if it use extensions temporary cache requestCache
. I didn't understood if this was the original idea. What is your thougths?
from vscode-snippet.
I think we could add another command "Snippet: Toggle comments", which would rerun the last query from the cache and set the Q
parameter accordingly:
- With comments:
curl cht.sh/lua/table+keys
- Without comments:
curl cht.sh/lua/table+keys?Q
The setting should also be persistent, so if comments were toggled off, they would stay off for future queries.
from vscode-snippet.
Seems like a better idea, @mre. I will try to work on it, this command would be very useful for me.
from vscode-snippet.
This was done in Version 0.5.1. Reference: 4387c86
from vscode-snippet.
Related Issues (20)
- Link Checker Report
- Link Checker Report
- Link Checker Report
- Link Checker Report
- Vscode CI warning: Bundle extension
- [Feature request] Visual Studio IDE's ToolBox alternative for VSCode HOT 15
- Handle cht.sh 404 better HOT 3
- Update open-vsx.org release
- How to quickly retrieve code snippets created by oneself using a keyboard? HOT 7
- Error running HOT 5
- backup and local file HOT 2
- Export, import HOT 1
- Lost my snippets data during syncing. HOT 2
- Link Checker Report HOT 1
- Link Checker Report
- Link Checker Report
- Link Checker Report HOT 1
- [Feature request] paste snippet on file creation HOT 2
- [Feature request] add terminal command snippets
- Link Checker Report
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-snippet.