When i create new fresh Next.js app and use JavaScript and open it using vs code, in .jsx files, suggestions not working as shown in the image, the props suggestions of any component not showing.
Suggestions not working
Props Suggestions not working
But when i create it and use TypeScript it works.
I deleted all settings.json
file and reset all vs code settings but i doesn’t work.
2
Answers
I will suggest you to follow these methods
Some possible solutions to your issue with VS Code not suggesting JSX attributes:
.js
or.ts
, try using.jsx
or.tsx
. This can often help with JSX suggestions.import React from 'react';
) in your file can sometimes make VS Code recognize and suggest JSX again.If the problem persists, there might be other factors at play, such as other extensions interfering with VS Code’s IntelliSense.