【发布时间】:2021-07-15 06:17:07
【问题描述】:
作为标题,我试过像HTML to CSS autocompletion
这样的插件,它适用于.html 文件,例如:
index.html
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="sections"></div>
<div id="root"></div>
</body>
然后在我的.scss 文件中,.sections 的自动完成工作:
.App {
.sec /* Pressing <Tab> at the position following `c` will
trigger auto-complete. */
}
.App {
.sections /* The result. */
}
虽然这不适用于 React 组件:
import "./app.scss"
function App() {
return (
<div className="App">
<Topbar/>
<div className="testing"></div>
</div>
);
}
./app.scss:
.App {
.tes /* Pressing <Tab> will not trigger auto-complete. */
}
【问题讨论】:
标签: reactjs visual-studio-code intellisense