VSCode + F#:如何使“//#region”像 C# #region

问题描述 投票:0回答:0

//#region
出现在Intellisense中,我包装了一些代码:

//#region Graph
type AnnotationDataType =
    | Text
    | Image
    | Audio
    | Video

type Node =
    { NodeID: int
      NodeLabel: string
      AnnotationDataType: AnnotationDataType }

type Edge =
    { EdgeID: int
      EdgeLabel: string
      Source: int
      Target: int }

//#endregion

但是没有任何反应!我不想要常规的“折叠”,因为它经常中断(只需尝试将一条线移出它的范围......)

显然它存在:https://code.visualstudio.com/docs/editor/codebasics

[在此处输入图片描述][1]

这里是我的配置文件,没有发生什么(我搜索了与区域相关的属性,但没有找到相关的):

"[fsharp]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "Ionide.Ionide-fsharp",
        "editor.codeLens": true,      
    },
    ```


  [1]: https://i.stack.imgur.com/jFFdK.png
visual-studio-code f#
© www.soinside.com 2019 - 2024. All rights reserved.