简体   繁体   English

Atom文本编辑器自动完成不接收我的.css文件

[英]atom text editor auto complete not picking up my .css file

i'm using atom text editor 1.20.1 using it for the first time 我第一次使用原子文本编辑器1.20.1

packages i'm using are: 1.autocomplete-paths 2.emmet 3. and all the core packages 我正在使用的软件包是:1.autocomplete-paths 2.emmet 3.和所有核心软件包

i have my html webpage file sorted like this: website test folder 我的html网页文件的排序如下: website test文件夹

my promblem is when i add link attribute and try to link my css it wont pop up on auto complete but my js files will showed here: image 我的问题是当我添加链接属性并尝试链接我的CSS时,它不会在自动完成时弹出,但我的js文件将显示在此处: image

在此处输入图片说明

is there a fix? 有解决办法吗?

Try adding the following to your config.cson file: 尝试将以下内容添加到您的config.cson文件中:

{
  scopes: ['source.css'], // Only triggers in CSS files 
  prefixes: [
    'import\\s+.*?from\\s+[\'"]', // import foo from ' 
    'require\\([\'"]', // require(' 
    'define\\(\\[?[\'"]' // define([' or define(' 
  ],
  extensions: ['css'], // Shows Css files 
  relative: true, // Inserts relative paths only - defaults to true 
  includeCurrentDirectory: true, // Include './' in path - defaults to true 
  replaceOnInsert: [ // Replaces the file extensions on insert 
    ['.css?$', '']
  ]
}

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

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