In the editor, if you hover between the line number and the code proper, "v"s will appear at the start of code blocks as shown in the image. When clicked they compress the code down to the end of the block, leaving behind a “>” to indicate where the compressed code is located. If I hold down the Alt key when clicking one of them, all code in the entire page similarly compresses. Doing it again seems to return “most”, not all, code back to its uncompressed self.
Does any know where to find documentation on the care and feeding of this interesting code panel feature? I can see it can be helpful if I knew how to use it, and knew what else I can do with it.
Hi Break80,
Looks like this functionality isn’t documented, so I’ve asked our code editor team for more information. I’ll report back as soon as I have some info to share. Thanks!
Programming in other languages, I have become accustomed to calling functions that are not contained in the blocks of code I am currently working in. That makes the code nice and clean, and easy to jump around your code as you program. If my explanation is not too clear, then think of it as calling a back end function from the front end in Velo…you don’t have to see it to know it is there ready to be run. That “undocumented” feature may be a reasonable surrogate for hiding blocks of code if it is rich enough in functionality.
I look forward to seeing some documentation, even it it is NOT polished for prime time.
Hi @jimyaccino the functionality you are referring to is “fold all regions except selected” or alternatively “Fold Level X” which folds all regions of level X, except the region at the current cursor position. You can see a the latter description in VS Code’s documentation - Basic Editing in Visual Studio Code
@jimyaccino you are right, it is not documented in Velo’s relevant articles. I’ll take it with the relevant people internally, thanks for pointing it out.