MVVS: MV Basic for Visual Studio

 View Only
  • 1.  MV BASIC Feature: Code Folding

    ROCKETEER
    Posted 03-30-2021 13:45
    Edited by Jennifer Fields 03-30-2021 14:36
      |   view attached

    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.  RE: MV BASIC Feature: Code Folding

    Posted 03-30-2021 18:08
    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
    ------------------------------



  • 3.  RE: MV BASIC Feature: Code Folding

    ROCKETEER
    Posted 03-30-2021 20:20
    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
    ------------------------------