简体   繁体   English

Eclipse 适用于 PHP 开发人员 2020-06 - 有没有办法在任务视图中显示 Javascript 任务?

[英]Eclipse for PHP Developers 2020-06 - Is There Any Way to Show Javascript Task in Tasks View?

I'm using Eclipse IDE for PHP Developers Version 2020-06 (Includes Incubating Components) (4.16.0) on Windows 10 Home, 64-bit, installed using the Windows 64-bit installation file from https://www.eclipse.org/downloads/packages/installer . I'm using Eclipse IDE for PHP Developers Version 2020-06 (Includes Incubating Components) (4.16.0) on Windows 10 Home, 64-bit, installed using the Windows 64-bit installation file from https://www.eclipse. org/downloads/packages/installer

Is there any way to have task tags (like TODO) in.js files show up in the Tasks view?有什么方法可以在 Tasks 视图中显示 in.js 文件中的任务标签(如 TODO)? In this version of Eclipse the task filter doesn't even list "JavaScript" as an option and there are no JavaScript settings in Preferences.在此版本的 Eclipse 中,任务过滤器甚至没有将“JavaScript”列为选项,并且首选项中没有 JavaScript 设置。 Task tags work in.html, .css, and.php files but not in.js files.任务标签适用于 .html、.css 和 .php 文件,但不适用于 in.js 文件。

UPDATE: I've switched to version 2020-12 (4.18.0) and JavaScript task tags are working by default in this version.更新:我已切换到版本 2020-12 (4.18.0),并且 JavaScript 任务标签在此版本中默认工作。

This worked for me (in Eclipse version 2020-09 (4.17.0)):这对我有用(在 Eclipse 版本 2020-09 (4.17.0) 中):

  1. Go to Window->Preferences. Go 到窗口->首选项。
  2. Go to Web->JavaScript Go 到 Web->JavaScript
  3. "Task Tags in JavaScript can be configured here" <- click this link “JavaScript 中的任务标签可在此处配置”<- 点击此链接
  4. Check the "Enable searching for Task Tags" checkbox选中“启用搜索任务标签”复选框
  5. Click Apply and Close单击应用并关闭

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

相关问题 Javascript 文件编辑停止使用 Eclipse 2020-06 - Javascript file editing stopped working with Eclipse 2020-06 关闭 Eclipse 2020-06 Javascript 验证说明 - Turning off Eclipse 2020-06 Javascript Validation Notes eclipse 2020-06 语法突出显示不适用于 php 或 ZFC35FDC70D5FC69D2EZE368 文件中的内联 javascript - eclipse 2020-06 syntax highlighting not working with inline javascript in php or html file Eclipse 2020-06 Javascript - 语法高亮不起作用 - Eclipse 2020-06 Javascript - Syntax Hightlighting not working 如何在 Eclipse 2020-06 中找到 JavaScript 项目选项? - How can I find JavaScript project option in Eclipse 2020-06? Eclipse 2020 Javascript 编辑器默认不工作 - Eclipse 2020 Javascript Editor Default Not Working TODO 任务未显示在 eclipse 2019-09 的任务视图中,最新版本为 node.js - TODO tasks not displaying in the task view in eclipse 2019-09 with latest version of node.js 有什么办法可以将javascript值传递给视图模型 - Is there any way to pass the javascript value to model in view 除了 react-native-background-task 之外,还有什么方法可以在 React Native 中执行后台任务吗? - Is there any way to do background tasks in React Native other than react-native-background-task? 如何将 2020-01-06T17:11:58.643Z 之类的 javascript 日期转换为 excel 中的日期时间? - How to convert javascript date like 2020-01-06T17:11:58.643Z to date time in excel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM