GitHub Copilot or JetBrains AI shows class instead of className in jsx files

Hi all,

When we disable the GitHub Copilot plug-in and type for example:
div.test

It shows the following output:
<div className="test"></div>

But if we enable GitHub Copilot plug-in or the JetBrains AI plug-in it outputs the following:
<div class="test"></div>

Bit it also should use className because we are in a jsx file.

How can we fix this? Now we have to change it manually every time.
Thanks for your time!

0
Could you share a video recording of the issue (when using JetBrains AI, not Copilot)?
0

Elena Pogorelova 

Here is a screenshot of the problem.

So when we enable the JetBrains AI (or GitHub Copilot) it autocompletes the div with class instead of className.

0
Sorry, but I requested a video recording of the issue (steps to repeat), not a screenshot of the results. Thank you.
0

请先登录再写评论。