<tfoot id='4kmUa'></tfoot>

      <legend id='4kmUa'><style id='4kmUa'><dir id='4kmUa'><q id='4kmUa'></q></dir></style></legend>
      • <bdo id='4kmUa'></bdo><ul id='4kmUa'></ul>

        <small id='4kmUa'></small><noframes id='4kmUa'>

        <i id='4kmUa'><tr id='4kmUa'><dt id='4kmUa'><q id='4kmUa'><span id='4kmUa'><b id='4kmUa'><form id='4kmUa'><ins id='4kmUa'></ins><ul id='4kmUa'></ul><sub id='4kmUa'></sub></form><legend id='4kmUa'></legend><bdo id='4kmUa'><pre id='4kmUa'><center id='4kmUa'></center></pre></bdo></b><th id='4kmUa'></th></span></q></dt></tr></i><div id='4kmUa'><tfoot id='4kmUa'></tfoot><dl id='4kmUa'><fieldset id='4kmUa'></fieldset></dl></div>

        如何在 Eclipse 中集成 CSS 预处理?

        How to integrate CSS pre-processing within Eclipse?(如何在 Eclipse 中集成 CSS 预处理?)

          <small id='OLUhQ'></small><noframes id='OLUhQ'>

          • <legend id='OLUhQ'><style id='OLUhQ'><dir id='OLUhQ'><q id='OLUhQ'></q></dir></style></legend>

              <tbody id='OLUhQ'></tbody>

              <tfoot id='OLUhQ'></tfoot>

                <i id='OLUhQ'><tr id='OLUhQ'><dt id='OLUhQ'><q id='OLUhQ'><span id='OLUhQ'><b id='OLUhQ'><form id='OLUhQ'><ins id='OLUhQ'></ins><ul id='OLUhQ'></ul><sub id='OLUhQ'></sub></form><legend id='OLUhQ'></legend><bdo id='OLUhQ'><pre id='OLUhQ'><center id='OLUhQ'></center></pre></bdo></b><th id='OLUhQ'></th></span></q></dt></tr></i><div id='OLUhQ'><tfoot id='OLUhQ'></tfoot><dl id='OLUhQ'><fieldset id='OLUhQ'></fieldset></dl></div>

                • <bdo id='OLUhQ'></bdo><ul id='OLUhQ'></ul>
                  本文介绍了如何在 Eclipse 中集成 CSS 预处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在 Eclipse 中编辑 SCSS 文件,最好使用 .scss 文件的语法高亮显示.

                  我发现这些资源很有价值:

                  • http://sass-lang.com/editors.html - 没有编辑器仅 .scss 文件 .sass
                  • http://colorer.sourceforge.net/eclipsecolorer - 只有 .scss 文件

                  如何在 Eclipse 编辑器中集成 SCSS 开发?

                  或者,更一般地说,如何将 CSS 预处理器集成到 Eclipse 中?

                  解决方案

                  我刚刚想出了如何在 Eclipse 中做到这一点.我承认这个解决方案没有 100% 的 SASS 支持,使用嵌套 css 时颜色会有点时髦,但它比查看纯文本要好得多,而且您不需要安装单独的编辑器.

                  您需要将 .scss 文件类型与 Eclipse[第 1 部分] 中的原生 Eclipse CSS 编辑器相关联.完成此操作后,您还需要将 .scss 文件类型添加到本机 CSS 编辑器,以便 CSS 编辑器能够打开它 [第 2 部分].以下是 Eclipse 的步骤(我正在为 Web 开发人员运行 Eclipse Java EE IDE,Indigo):

                  第 1 部分 - 将 .scss 文件类型与本机 Eclipse CSS 编辑器关联

                  1. 转到窗口>首选项

                  2. 深入了解常规>编辑 >文件关联

                  3. 在文件关联"窗格中,单击右上角的添加..."按钮.

                  4. 对于文件类型:,输入*.scss,然后点击OK.

                  5. File Associations 列表中找到 *.scss 条目并选择它.

                  6. 选择*.scss后,在底部面板Associated editors:,点击Add...按钮.

                  7. 确保选择顶部的Internal editors,然后找到并选择CSS Editor,然后点击OK.p>

                  这将文件类型 .scss 与 Eclipse 原生 CSS 编辑器相关联.现在我们必须配置原生 CSS 编辑器来支持 .scss 文件.为此,请按照以下步骤操作:

                  第 2 部分 - 将 .scss 文件类型添加到本机 CSS 编辑器

                  1. 转到窗口>首选项

                  2. 深入了解常规>内容类型

                  3. 在内容类型"窗格中,展开 Text,然后选择 CSS

                  4. 选择CSS后,在底部File associations:窗格中,点击Add...按钮.p>

                  5. 对于Content type:,输入*.scss,然后点击OK.

                  6. 单击确定关闭首选项"窗口.

                  全部完成.您现在需要做的就是关闭所有打开的 .scss 文件,然后重新打开它们,然后在 Eclipse 中为 .scss 文件打开 wha-la、css 颜色!

                  注意:如果没有出现 css 颜色,您可能需要执行以下操作: 右键单击 .scss 文件 >打开方式 >CSS 编辑器.

                  希望这会有所帮助.

                  I would like to edit SCSS files in Eclipse, preferably with syntax highlighting for .scss files.

                  I found these resources valuable:

                  • http://sass-lang.com/editors.html - has no editor for .scss files only .sass
                  • http://colorer.sourceforge.net/eclipsecolorer - has only .scss files

                  How can do I integrate SCSS development within the Eclipse editor?

                  Or, more generally, how do I integrate a CSS pre-processor into Eclipse?

                  解决方案

                  I just figured out how to do this in Eclipse. I admit that this solution does not have 100% SASS support, the colors get a little funky when using nested css, but it's waaaaay better than looking at plain text and you don't need to install a separate editor.

                  You need to associate the .scss file type with the native Eclipse CSS Editor in Eclipse[Part 1]. After you do that, you need to add the .scss file type to the native CSS Editor as well so the CSS Editor will be able to open it [Part 2]. Here are the steps for eclipse (I'm running Eclipse Java EE IDE for Web Developers, Indigo):

                  Part 1 - Associate the .scss file type with the native Eclipse CSS Editor

                  1. Go to Window > Preferences

                  2. Drill down to General > Editors > File Associations

                  3. In File Associations pane, click the 'Add..." button on the top right.

                  4. For File Type:, enter *.scss and then click OK.

                  5. Find the *.scss entry in the File Associations list and select it.

                  6. After selecting *.scss, on the bottom pane Associated editors:, click the Add... button.

                  7. Make sure Internal editors is selected on the top, then find and select CSS Editor and then click OK.

                  This associated the file type .scss with eclipses native CSS Editor. Now we have to configure the native CSS Editor to support .scss files. To do this, follow this steps:

                  Part 2 - Add the .scss file type to the native CSS Editor

                  1. Go to Window > Preferences

                  2. Drill down to General > Content Types

                  3. In the Content Types pane, expand Text, then select CSS

                  4. After CSS is selected, on the bottom File associations: pane, click the Add... button.

                  5. For Content type:, enter *.scss and then click OK.

                  6. Click OK to close out the Preferences window.

                  All done. All you need to do now is close any .scss files that you have open then re-open them and wha-la, css colors in Eclipse for .scss files!

                  Note: If the css colours do not appear you may have to do the following: Right click the .scss file > Open With > CSS Editor.

                  Hope this helps.

                  这篇关于如何在 Eclipse 中集成 CSS 预处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  How can I specify the default JVM arguments for programs I run from eclipse?(如何为从 Eclipse 运行的程序指定默认 JVM 参数?)
                  Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined(JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的) - IT屋-程序员软件开发技术分享
                  Running Eclipse on Windows 7 JRE and JDK not found(找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse)
                  StringBuilder vs. .concat vs. quot;+quot; Operator relative performance different in eclipse than command line?(StringBuilder vs. .concat vs. “+eclipse中的操作员相对性能与命令行不同?)
                  Is there a maximum number you can set Xmx to when trying to increase jvm memory?(尝试增加 jvm 内存时,您可以将 Xmx 设置为最大数量吗?)
                  <legend id='92QRk'><style id='92QRk'><dir id='92QRk'><q id='92QRk'></q></dir></style></legend>
                  • <bdo id='92QRk'></bdo><ul id='92QRk'></ul>
                      <tbody id='92QRk'></tbody>

                      1. <tfoot id='92QRk'></tfoot>

                            <i id='92QRk'><tr id='92QRk'><dt id='92QRk'><q id='92QRk'><span id='92QRk'><b id='92QRk'><form id='92QRk'><ins id='92QRk'></ins><ul id='92QRk'></ul><sub id='92QRk'></sub></form><legend id='92QRk'></legend><bdo id='92QRk'><pre id='92QRk'><center id='92QRk'></center></pre></bdo></b><th id='92QRk'></th></span></q></dt></tr></i><div id='92QRk'><tfoot id='92QRk'></tfoot><dl id='92QRk'><fieldset id='92QRk'></fieldset></dl></div>
                          1. <small id='92QRk'></small><noframes id='92QRk'>