Code folding not working in typescript.

Hello,

 I have been using Pycharm community version 2020.2 and found that code folding is not working in Typescript file.

I have tried most of options in Pycharm but still not able to solve it .

Please let me know how to enable code folding for Typescript file.

 

Find screen shot for more details.

 

 

3 comments
Comment actions Permalink

Hi,

Does it work if you select the region and invoke [Code | Folding | Fold Selection] from the menu? 

0
Comment actions Permalink

Hello Andrey Resler,

Yeah I have checked and it is working with  "you select the region and invoke [Code | Folding | Fold Selection] from the menu" but this is not what I am expecting.

Is it possible to enable code folding by default the same way it working with html and py files.

0
Comment actions Permalink

PyCharm Community doesn't include TypeScript support, only the basic syntax highlighting (through textmate bundles) is available. Code folding requires advanced syntax support

 

We have a feature request to honor code folding rules of TextMate bundles, https://youtrack.jetbrains.com/issue/IDEA-212839, please follow it for updates

0

Please sign in to leave a comment.