-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add foldable region comments #5
Comments
Hi, sorry for the late reply. Are you able to provide some sort of pseudocode JSON output of what you're expecting? Do you want me to expose something like Looking at your SO question, it looks like you want to copy both the index of the starting position and the selected text in one "Copy" command, is that right? If so, this sounds like a very niche use case, and I can't say I'd spend much time working on it. The purpose of this tool is to help developers write AHK code, and I don't see how that would help. You're more than welcome to help me understand how this is useful! |
Hi, my use case was to produce an AHK script that could simplify the creation of folding block comments. As it is, VSC requires lines of text within the block comment to be indented for it to fold. The need for indentation can be eliminated with the combined use of the folding region tags For the script to function correctly, it would need to ensure the selected block of text starts at column 0 and finishes at the end of a line and would otherwise issue an alert when launched. Perhaps this concept could be encoded within the extension, possibly being called from the editor's context menu? |
I saw your commit to /* ;region
line one
line two
*/ ;endregion How about: /*
line one
line two
*/ And the above comment is foldable? |
what extension are you using to make block comments foldable ? |
I made a further commit here. I edited the RegEx's like so...
Yes, just like in Notepad++ and similar editors. This is a folding 'helper' script I devised. |
@fade2gray I answered your question, but on stack overflow |
@FuPeiJiang Yes, thanks for that. I didn't reply there because it says not to leave comments just to say "thanks". Now, with my extremely limited experience with creating extensions, I need to try and implement your code suggestion. Thanks again. 👍 |
I think you already solved it using ahk ? did you ? https://code.visualstudio.com/api/get-started/your-first-extension
idk yet how to edit file using vscode, how to copy to clipboard |
using ahk, if you want to block comment lines without selecting the full line, (without selecting start of line, without selecting end of line)
|
Closed by #27 |
Hello,
I posted a similar [url=https://stackoverflow.com/q/64791832/14619965]question[/url] on Stack Overflow but it hasn't garnered much interest.
Essentially, I'm trying to determine what the start position is, when the copy command is used, for a selected block of text, preferably using windows cmd/Powershell to be used as a script variable.
I found this API Reference and wondered if it could be used in some fashion.
Thanks for any help.
The text was updated successfully, but these errors were encountered: