Answer a question

Is there any bash command so that we can extract the content of OUTLINE or AL OUTLINE section of the VS Code and write the same into some text document ?

Answers

If you don't get a better answer, you can try the Show Functions extension.

It can produce an output of a (clickable) list of functions and symbols into a separate editor which you can then Ctrl-A to copy and paste.

You don't say what languages you are using, I use the following for .js files:

"funcList": {
    "doubleSpacing": true,
    "filters": [
      {
        "extensions": [
          ".js"
        ],
        "native": "/^[a-z]+\\s+\\w+\\s*\\(.*\\)/mgi",
        "display": "/\\S* +(\\w+\\s*\\(.*\\))/1",
        "sort": 0
      }
    ]
}

which captures and displays the function name and args like:

loadCountryTaxonomy(country)

toggleSearchResultsPanel()

updatetaxArticleQueries(data)

but you can modify the regex to your requirements. I don't try to list symbols other than functions but apparently you can with this extension.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐