Hi,
New to AHK and VScode, I don't code either. Something is bothering me while i'm watching tutos for AHK, i can't collapse comments like i see they do in scite4autohotkey. I got a few AHK addons for VScode already, doesn't change anything.
https://imgur.com/a/FlBYano
Thank you, sorry for noob question.
How to collapse comments in VScode? Topic is solved
How to collapse comments in VScode?
Last edited by Kawaki on 03 Jul 2021, 06:17, edited 1 time in total.
Re: How to collapse comments in VScode?
I don't know much about VS because AHK is my first programming language
You can mentioned comments in your code and comment will starts with ;
You can disable multiple lines using /* and it will disable all line below unless you close it with *\
I just know these two ways
You can mentioned comments in your code and comment will starts with ;
Code: Select all
NTNdata := INI2Array(NTNini) ; this will translated ini into array
for Sec, Seclines in NTNdata ; using for loop to put data from ini into tree view
for k, v in Seclines
TV_Add(Sec " : " v )
Code: Select all
/*
; following code will make ongoing month selected as default for dropdownlist
months := ["Jan","Feb","March","April","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
for k, v in months
{
if (v = A_MMM )
Monthlist .= v "||"
else
Monthlist .= v "|"
}
*/
Gui MState:Add, DropDownList, x237 y235 w120 vEMonth, % Monthlist
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: How to collapse comments in VScode?
Yeah, i learned those ways too. I wanted to use VScode since it seems an all around good editor with many possibilities, even though i'm also starting to learn AHK as my first language. It's just that if comments do work, I can't seem to find the option to collapse/fold them like in scite4autohotkey. I know i'm gonna have to use it at some point and it's frustrating not to be able to do it.
Re: How to collapse comments in VScode? Topic is solved
At least with the AHK extension I use in VS Code, the lines in between the opening comment line and the closing comment line need to be indented by at least a space for the collapse feature to appear in the margin. It seems to be based almost (or totally) solely on the indentation rather than the existence of the comment symbols.
Re: How to collapse comments in VScode?
@boiler
What do you use as extension? There are so many of them, and so many forks from the same main one. I figured it could come from an extension but i've tried many, doesn't seem to change anything.
Also, i noticed that TypeScript (in VS code) uses same comment format and collapse does work perfectly! So even weirder.
What do you use as extension? There are so many of them, and so many forks from the same main one. I figured it could come from an extension but i've tried many, doesn't seem to change anything.
Also, i noticed that TypeScript (in VS code) uses same comment format and collapse does work perfectly! So even weirder.
Re: How to collapse comments in VScode?
I'm currently using AutoHotkey Plus Plus by Mark Wiemer, which was forked from cweijan's AutoHotkey Plus.
Re: How to collapse comments in VScode?
boiler wrote: ↑03 Jul 2021, 06:14At least with the AHK extension I use in VS Code, the lines in between the opening comment line and the closing comment line need to be indented by at least a space for the collapse feature to appear in the margin. It seems to be based almost (or totally) solely on the indentation rather than the existence of the comment symbols.
Ooh, i tried to use a space before. It works now. It's exactly as you said, the collapse option is entirely based on the space rather than the comment symbol.
Anyway, thanks a lot!