Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert TODO comment in React JSX file

Tags:

jsx

phpstorm

todo

I would like to insert TODO comments on a React JSX file, a regular JavaScript comments are parsed as text and rendered in my component PhpStorm list them in in TODO tool window

// TODO any comments ... 
or 
/* TODO an other todo task*/ 

in case when I use a JSX comment like this

{/* TODO an other todo task*/}

PhpStorm ignore the TODO and consider it as simple comment, there is a way to insert a TODO with PhpStorm in React JSX file or there is a lack in PhpStorm support for react and it's requires an enhancement.

like image 325
Ait Yahia Idir Avatar asked Oct 27 '25 10:10

Ait Yahia Idir


1 Answers

looks similar to WEB-23401, please follow it for updates

like image 122
lena Avatar answered Oct 29 '25 06:10

lena



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!