Sass (.scss) 文件的 Aptana Studio 3 代码辅助 [英] Aptana Studio 3 code assist for Sass (.scss) files

查看:33
本文介绍了Sass (.scss) 文件的 Aptana Studio 3 代码辅助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Aptana Studio 3,我希望代码辅助功能适用于 Sass (.scss) 文件.如果代码辅助对 Sass 语法/声明不起作用,那也没关系,但我想获得标准 CSS 声明的语法高亮和代码完成帮助.例如,如果我输入背景",我希望编辑器像 HTML 一样显示语法.

I'm using Aptana Studio 3 and I'd like to get the code assist feature to work for Sass (.scss) files. It's OK if code assist doesn't work for Sass syntax/declarations, but I'd like to get syntax highlighting and code completion help for standard CSS declarations. So for example if I type in "background" I'd like the editor to display the syntax like it does for HTML.

我为 .scss 文件添加了一个新的文件关联首选项(来自这里:https://wiki.appcelerator.org/display/tis/Changing+your+file+association+preferences),并将 CSS 编辑器指定为 .scss 文件的默认编辑器.这让我语法高亮,但没有 CSS 规则的代码完成帮助.

I've added a new File Association Preference for .scss files (from here: https://wiki.appcelerator.org/display/tis/Changing+your+file+association+preferences), and assigned the CSS Editor as the default editor for .scss files. This gets me syntax highlighting, but no code completion help for CSS rules.

我是不是做错了什么,还是我在获得代码完成/代码辅助帮助时运气不好?

Am I doing something wrong or am I just out of luck for getting code completion/code assist help?

推荐答案

this^对于那些还没有这样做过的人,请转到:首选项 > 常规 > 编辑器 > 文件关联在文件类型中选择 sass(和 scss),点击添加,选择 css 源代码编辑器,添加它.然后在关联的编辑器框中选择 css 源代码编辑器并单击默认.这样做之后 - 感到沮丧并像我们一样使用谷歌代码完成 sass aptana 工作室,然后如果您找到解决方案或投票,则发布解决方案,以便有人发现.

this^ for those who haven't done it already go to: preferences > general > Editors> File Associations in filetypes select sass (and scss), click add, choose css source editor, add it. then select the css source editor in the associated editors box and click default. after doing that- get frustrated and google code completion sass aptana studio like we did and then post the solution if you find it or upvote so someone finds out.

这篇关于Sass (.scss) 文件的 Aptana Studio 3 代码辅助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆