如何为 Eclipse 安装 JavaScript 编辑器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29299567/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 03:07:38  来源:igfitidea点击:

How to install a JavaScript editor for Eclipse?

javascripteclipseeclipse-plugin

提问by Edward

I have a standard Eclipse running on an Ubuntu 14.10:

我有一个在 Ubuntu 14.10 上运行的标准 Eclipse:

Eclipse Standard/SDK

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
  1. I searched for javascriptin the marketplace. But nothing jumped to my eye.
  2. I searched javascript editor eclipseon the web, which gave me JSDT(https://eclipse.org/webtools/jsdt/) But I couldn't find it in the marketplace.
  3. I realised, that JSDTare budled within the WDT(Web Tools Platform; https://eclipse.org/webtools/).
  1. javascript在市场上找过。但什么都没有跳到我的眼中。
  2. javascript editor eclipse在网上搜索,这给了我JSDThttps://eclipse.org/webtools/jsdt/)但我在市场上找不到它。
  3. 我意识到,JSDT它们包含在WDT(Web 工具平台;https://eclipse.org/webtools/ )中。

It seems that I'm lacking some basic knowledge about eclipse.

看来我缺乏一些关于eclipse的基本知识。

  • Is it somehow possible to install JSDTwithout all the other stuff of the WTP?
  • When I'd like to use WTP, do I need a separate installation of Eclipse? (since WTPis also not in the marketplace)
  • Is there an JavaScript editor plugin that I can simply add to my existing Eclipse installation?
  • 是否可以在JSDT没有所有其他内容的情况下安装WTP
  • 当我想使用 时WTP,是否需要单独安装 Eclipse?(因为WTP也不在市场上)
  • 是否有一个 JavaScript 编辑器插件可以简单地添加到我现有的 Eclipse 安装中?

回答by greg-449

You can install all or part of Eclipse WTP in to your current Eclipse.

您可以将全部或部分 Eclipse WTP 安装到当前的 Eclipse 中。

To install just JSDT open 'Help > Install New Software...'.

要仅安装 JSDT,请打开“帮助 > 安装新软件...”。

In "Work with" choose your main Eclipse site (http://download.eclipse.org/releases/lunafor Eclipse Luna).

在“Work with”中选择您的主要 Eclipse 站点(http://download.eclipse.org/releases/luna对于 Eclipse Luna)。

Expand the 'Web, XML, Java EE and OSGi Enterprise Development' section and select 'JavaScript Development Tools'

展开“Web、XML、Java EE 和 OSGi 企业开发”部分并选择“JavaScript 开发工具”

Click Next> to proceed with the install.

单击下一步> 继续安装。

回答by Mickael

Another alternative to JSDT is to install the Wild Web Developer plugin from https://marketplace.eclipse.org/content/bluesky-web-development-eclipse-ide-experimental. It's using the latest Language Server for HTML, CSS, JSON, JavaScript and TypeScript. It's open-source and is becoming an official Eclipse.org project.

JSDT 的另一种替代方法是从https://marketplace.eclipse.org/content/bluesky-web-development-eclipse-ide-experimental安装 Wild Web Developer 插件。它使用最新的 HTML、CSS、JSON、JavaScript 和 TypeScript 语言服务器。它是开源的,正在成为 Eclipse.org 的官方项目。