javascript WebStorm IDE 的高效使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5462285/
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-10-25 17:16:33  来源:igfitidea点击:

Efficient usage of WebStorm IDE

javascriptidewebstorm

提问by wildcard

I've recently fallen in love in WebStorm as an IDE for JavaScript development. The problem is, I come from a world of vim and lightweight editors, so I probably can't fully appreciate all the power that comes with IDE. Yes, I've seen the presentations and read the docs, but there's a lot of features and I'm not sure which of them are truly useful.

我最近爱上了 WebStorm 作为 JavaScript 开发的 IDE。问题是,我来自 vim 和轻量级编辑器的世界,所以我可能无法完全理解 IDE 的所有功能。是的,我看过演示文稿并阅读过文档,但是有很多功能,我不确定其中哪些是真正有用的。

So, here goes my question: how do you use WebStorm and what do you find most useful? Any power-usage tips? Configuration hacks? Plugins worth mentioning?

所以,我的问题是:你如何使用 WebStorm,你觉得什么最有用?有什么用电技巧吗?配置黑客?插件值得一提吗?

I'm not looking for a list of features, I'm looking for a real-world usage examples and impressions.

我不是在寻找功能列表,而是在寻找真实世界的使用示例和印象。

PS. I work mostly with pure JS + Canvas element and some NodeJS.

附注。我主要使用纯 JS + Canvas 元素和一些 NodeJS。

回答by studgeek

Some random thoughts, maybe more later....

一些随意的想法,也许以后会更多......

In the help, definitely read the Basic Concepts and skim the WebStorm Usage Guidelines for actions that you care about.

在帮助中,请务必阅读基本概念并浏览 WebStorm 使用指南以了解您关心的操作。

Learn to use Ctrl-Shift-A. It allows you to 1uickly find actions you can do by typing part of them. With that you can find anything once you know it exists.

学习使用 Ctrl-Shift-A。它允许您 1uickly 找到您可以通过键入其中的一部分来执行的操作。有了它,一旦你知道它存在,你就可以找到任何东西。

WebStorm's (like IntelliJ) best magic is its code completion and refactoring features, which come from its code parsing and awareness. It figures a lot of stuff out, but you can help it out by making you have good source files. Put the commented versions of the libraries you use in your project so it can use those comments to display in the doc popups (just having them in the directory is all you need).

WebStorm(如 IntelliJ)最大的魔力是它的代码完成和重构功能,这来自它的代码解析和感知。它可以计算出很多东西,但是您可以通过制作良好的源文件来帮助它。将您使用的库的注释版本放在您的项目中,以便它可以使用这些注释显示在文档弹出窗口中(只需将它们放在目录中即可)。

Be sure to leave the tips on.

一定要留下提示。

Their forums are useful, but if you have a problem or feature request put it right into youtrack.com. They are much more responsive there. You can also vote for the stuff you want added.

他们的论坛很有用,但如果您有问题或功能请求,请将其直接发送到 youtrack.com。他们在那里反应更快。您还可以为想要添加的内容投票。

And if you haven't seen it yet, there is a VIM plugin which will give you VIM editor keys, called IdeaVim.

如果您还没有看到它,有一个 VIM 插件可以为您提供 VIM 编辑器键,称为IdeaVim

回答by Victor

Features I find most useful:

我觉得最有用的功能: