简体   繁体   English

NuxtJS 智能感知

[英]NuxtJS Intellisense

I've recently started a web project using NuxtJS with Tailwind CSS as it's apparently auto-including, fast, efficient and would let me create and learn easily.我最近开始了一个 web 项目,使用 NuxtJS 和 Tailwind CSS,因为它显然是自动包含的,快速,高效,可以让我轻松创建和学习。

As I'm not very experimented in web and direclty learning from Tailwind and not "regular" CSS I don't know all of the style tags ( margin-left: 0 would be mx-0 for example) and I started looking for Intellisense but none of them seems to be working.由于我在 web 中并没有进行太多的实验并且直接从 Tailwind 学习而不是“常规” CSS 我不知道所有的样式标签(例如margin-left: 0将是mx-0 )我开始寻找 Intellisense但他们似乎都没有工作。

I tried installing for NuxtJS, Tailwind, Vue, but nothing appears and when pressing CTRL + Space I just got a "No suggestions."我尝试为 NuxtJS、Tailwind、Vue 安装,但没有任何显示,当按下CTRL + Space时,我只收到“没有建议”。 (in.vue files). (in.vue 文件)。

Has anyone been working with NuxtJS and is using an intellisense for VSCode?有没有人使用过 NuxtJS 并且正在使用 VSCode 的智能感知?

To get Tailwind IntelliSense, you'll have to install Tailwind CSS IntelliSense by Tailwind to your VSCode要获得 Tailwind IntelliSense,您必须将Tailwind 的 Tailwind CSS IntelliSense安装到您的 VSCode

WindiCSS is also quite popular in the Vue ecosystem, their VScode extension is more powerful and deserves a try (it's made by antfu too.). WindiCSS在 Vue 生态中也很流行,他们的 VScode 扩展更强大,值得一试(也是 antfu 制作的。)。

Otherwise, if you're new to the Web I highly recommend starting by the basics (HTML, then CSS, then JS, then Vue) before reaching upon Nuxt.否则,如果您是 Web 的新手,我强烈建议您先从基础知识开始(HTML,然后是 CSS,然后是 JS,然后是 Vue),然后再接触 Nuxt。 You will have a bad time trying to understand what is happening because of the super high abstraction.由于超高抽象,您将很难理解正在发生的事情。

Even if a meta-framework (like Nuxt) is quite useful, it brings a lot and you probably need to understand what you get rather than thinking that it's the default, otherwise it will have too "much magic" for your learning process.即使一个元框架(比如 Nuxt)非常有用,它带来了很多,你可能需要理解你得到了什么,而不是认为它是默认的,否则它对你的学习过程来说会有太多的“魔力”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM