简体   繁体   English

Eclipse css 内容辅助(引导程序)

[英]Eclipse css content-assist (bootstrap)

I cannot seem to figure out why content assist is not working for HTML classes in Eclipse.我似乎无法弄清楚为什么内容辅助对 Eclipse 中的 HTML 类不起作用。 I have the Eclipse PDT and Web Developer Tools installed.我已经安装了 Eclipse PDT 和 Web Developer Tools。 Content assist works fine with PHP files, and standard HTML tags, but I'm sorely missing the ability to scroll a list of CSS boostrap classes (eg, Twitter bootstrap).内容辅助适用于 PHP 文件和标准 HTML 标签,但我非常缺少滚动 CSS boostrap 类列表(例如 Twitter bootstrap)的能力。

I just switched from Netbeans to Eclipse, and this worked great in Netbeans.我刚刚从 Netbeans 切换到 Eclipse,这在 Netbeans 中效果很好。

Now I only get proposals for div and class , but that's where proposals end.现在我只收到divclass的提案,但这就是提案结束的地方。

<div class="no more proposals">

I've already looked at file associations, editor->content assist settings, include paths, etc. Any other suggestions appreciated.我已经看过文件关联、编辑器-> 内容辅助设置、包含路径等。任何其他建议表示赞赏。

That's it.而已。 I've had it with Eclipse and Netbeans.我已经在 Eclipse 和 Netbeans 上使用过它。 Eclipse is awesome, until I worked on trying to get content assist working for html classes for hours with no success. Eclipse 很棒,直到我尝试让内容辅助为 html 类工作数小时但没有成功。 Netbeans had it all, including content assist even for html class elements, but the IDE continued to freeze time after time - cursor spins and spins and spins... Netbeans 拥有一切,甚至包括 html 类元素的内容辅助,但 IDE 一次又一次地继续冻结 - 光标旋转,旋转和旋转......

I just installed PHPStorm from Jetbrains, and this IDE needed absolutely no help from me to get setup and running.我刚刚从 Jetbrains 安装了PHPStorm ,这个 IDE 完全不需要我的帮助来设置和运行。 I had my project open, tested code assist on everything successfully, navigated around and found all the views I needed.我打开了我的项目,成功测试了所有代码辅助,导航并找到了我需要的所有视图。

I have no problem paying for a product if it works as designed, especially if I don't have to spend hours trying to figure out how to get some feature to work.如果产品按设计工作,我就可以为它付费,特别是如果我不必花费数小时试图弄清楚如何让某些功能发挥作用的话。 Time is money, and dropping a few dollars to get back hours of my life is well worth it .时间就是金钱,花几美元换回我生命中的几个小时是非常值得的

Incidentally, I am running Ubuntu Raring desktop, and the versions of Eclipse and Netbeans I was struggling with were Kepler and 7.3.1 , respectively.顺便说一句,我正在运行Ubuntu Raring桌面,而我正在努力使用的Eclipse 和 Netbeans版本分别是Kepler 和 7.3.1 Version of PHPStorm that works like a dream is 6.0.3 .像梦一样工作的PHPStorm版本是6.0.3

Problem solved.问题解决了。

Disclaimer, I'm the author of Eclipse WTP Web Resources .免责声明,我是Eclipse WTP Web Resources的作者。

It's because WTP doesn't provide this feature.这是因为 WTP 不提供此功能。 If you need completion, validation, hyperlink, hover for CSS#ID, CSS#class, imgage, scripts and css files, I suggest you that you install Eclipse WTP WebResources .如果您需要完成、验证、超链接、CSS#ID、CSS#class、图像、脚本和 css 文件的悬停,我建议您安装Eclipse WTP WebResources

I know, that you asked this a year ago, but Eclipse is now providing autocomplete and suggestions.我知道,你在一年前问过这个问题,但 Eclipse 现在提供自动完成和建议。 Simply with CTRL+Space, after you write at least one letter.在您至少写完一个字母后,只需使用 CTRL+Space。 It work quiet well.它安静地工作。

I boosted it by installing Aptana ( https://marketplace.eclipse.org/content/aptana-3 ).我通过安装 Aptana ( https://marketplace.eclipse.org/content/aptana-3 ) 来提升它。

Nowadays you can find plugins even for Less and SCSS.现在你甚至可以找到 Less 和 SCSS 的插件。 Just go to marketplace.去市场就行了。

Hope it helps.希望能帮助到你。

This isn't so much an answer as a contribution.这与其说是一个贡献,不如说是一个答案。

My IDE of choice has been NetBeans 8.2 - it's intuitive and sets itself up without too much configuration (unlike Eclipse), but it seems that now even NB is being left behind and isn't supported as thoroughly as it once was.我选择的 IDE 是 NetBeans 8.2 - 它很直观,无需太多配置即可自行设置(与 Eclipse 不同),但现在看来,即使是 NB 也被抛在后面,并且不像以前那样得到全面支持。 One of the real frustrations is to run PHPUnit tests in NB interactively, because it inserts all kinds of legacy (unsupported) directives into the NB CLI phpunit command, which makes it virtually unusable for any meaningful development.真正令人沮丧的是在 NB 中以交互方式运行 PHPUnit 测试,因为它将各种遗留(不受支持)指令插入到 NB CLI phpunit 命令中,这使得它几乎无法用于任何有意义的开发。 I know there's Apache NB 11.something, but it stalls during download, and even when I did get it to download and install it still contains the legacy phpunit directives, and none of the list of available frameworks for code-completion has been updated.我知道有 Apache NB 11.something,但它在下载过程中会停止,即使我确实下载并安装了它,它仍然包含遗留的 phpunit 指令,并且代码完成的可用框架列表都没有更新。 I didn't want to have to pay for an IDE.我不想为 IDE 付费。 :-( :-(

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

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