Skip to main content

MV BASIC Feature: Code Folding

  • March 30, 2021
  • 2 replies
  • 0 views

Jennifer Fields

MV BASIC's Code Folding feature allows you to selectively hide and display fold sections of a currently edited file as part of routine edit operations. Watch this video for a quick demo of Code Folding. 



------------------------------
Jennifer Fields
Information Developer
Rocket
------------------------------

2 replies

Walter Kiess
Forum|alt.badge.img+1
  • Participating Frequently
  • 30 replies
  • March 30, 2021

MV BASIC's Code Folding feature allows you to selectively hide and display fold sections of a currently edited file as part of routine edit operations. Watch this video for a quick demo of Code Folding. 



------------------------------
Jennifer Fields
Information Developer
Rocket
------------------------------
Thanks for the video, Jennifer.

Is there a way to fold (collapse) all code with one keystroke rather than having to fold each individual section manually? Conversely, is there a way to unfold all code segments with a single keystroke?
You didn't show what happens when you collapse a comment block. Is the folding still based on the number of spaces from the left margin or is it by code syntax, i.e. it recognises where an IF...THEN...END block is located and folds accordingly?

------------------------------
Walter Kiess
SA Police Super
------------------------------

Yunpu Zhao
  • Rocketeer
  • 16 replies
  • March 30, 2021
Thanks for the video, Jennifer.

Is there a way to fold (collapse) all code with one keystroke rather than having to fold each individual section manually? Conversely, is there a way to unfold all code segments with a single keystroke?
You didn't show what happens when you collapse a comment block. Is the folding still based on the number of spaces from the left margin or is it by code syntax, i.e. it recognises where an IF...THEN...END block is located and folds accordingly?

------------------------------
Walter Kiess
SA Police Super
------------------------------
Hi Walter, 

Currently code folding is based on syntax rather than the spaces numbers.
You can find the shortcut keys to collapse code in VS code settings and customize them as wish.



------------------------------
Yunpu Zhao
Software Engineer
Rocket Software
Dalian China
------------------------------