Official website: http://www.jetbrains.com/webstorm/
Webstorm,file= "setting=" javascript-libraries
How Webstorm works:completion for JavaScript Libraries
One of the essential features of Webstorm ' s editor is code completion. The the-the-implemented in Webstorm are that it takes all JavaScript files in the project and goes through them, Addi Ng functions and methods to a internal index used for code completion suggestions. The index is automatically updated whenever existing files be changed or new files are added.
JSDOC, used for documenting code, also plays a important role in making your coding experience better. It powers Webstorm autocompletion with additional details about parameters and their types.
But what if has only minified files included, or if all the libraries is loaded dynamically? In this case it would is impossible for the IDE to statically analyse them and provide the necessary level of code Complet Ion when you press Ctrl+space, or to resolve functions and methods.
This is where we introduce the concept (or mechanism) of External libraries , the We use in Webstorm.
External Libraries
External libraries is files explicitly added to project's index to being used only in enhancing coding assistance (i.e. code Completion, syntax highlighting, navigation, and documentation lookup). They is is edited in the scope of this project.
Concept clearer, let's see how it works on a real project. Here are a simple project using the Famous framework for UI (same as on the screenshots above).
As we can see, some framework-specific methods is not resolved. This happens because the "file famous.js is" in the "not" in the project, and is an hosted on CDN.
To make webstorm aware of the functions and methods of the library without adding it source code to the project, we need To set the it as an External JavaScript library.
There is several ways to does this:
- Download the library from the CDN link
The Quick-fix ' Download library ' (call and Alt+enter) loads the file from the CDN link into the Webstorm cach E (but not in your project).
can go to Preferences | JavaScript | Libraries to load the list of all Libraries this could power code completion for your project and enable specific ASP ECTS of code completion that need.
Another-to-add libraries to this list is manually. This option was useful when the library was stored locally on your computer, and not in the project folder.
Select Preferences | JavaScript | Libraries and click Add . Enter the library name and the path to the library file or folder. If you select the Global visibility level, you'll be able to enable the this library in your and other projects.
Additionally, you can specify the path to the library ' s/framework ' s documentation. This URL is opened when you press SHIFT+F1 ( Show External documentation ) on methods from the library.
Important Note: If your library files is in the project folder, it's worth adding them to the list of JavaScript libraries as described a Bove:as a result, code inspections'll be disabled for these files, and Project-wide code quality analysis would become F Aster.
Consider node_modules folder as an example. We would like to has code completion for the modules and keep them in the project, but there are no need for us to run INS Pections against these files. That's why this folder should was marked as a library. In fact, the Webstorm does that automatically.
node. JS Core modules as External library
node. JS core modules (like http or FS ) is another example where External libraries is used. Webstorm suggests downloading the sources and marks them as Global libraries.
Once you ' ve downloaded the sources, you can enable coding assistance for functions and methods from node. JS Core Modules I n any of your projects. To do, go to Preferences | JavaScript | Libraries and select the checkbox:
Using TypeScript community stubs (TypeScript definition files)
Webstorm provides one more workaround for adding coding assistance for some popular libraries, frameworks and modules when You don't have the source code available in your project. It allows download definitelytyped stubs. These definition files for libraries and frameworks is added to the list of your project ' s External libraries, thus Enhan Cing code completion.
Develop with pleasure!
JetBrains Webstorm Team
Article turned from: Http://www.tuicool.com/articles/732ENnZ
The new version of the default supports Zen coding.
Question: How to modify the editor font
Settings, Editor, Colors & Fonts. Default is not possible, and later on-line to save the theme saved as the first to modify the font. Changed to Courier New. Font size 14.
The Webstorm live Edit feature synchronizes with the browser implementation steps:
http://ju.outofmemory.cn/entry/70084
Http://www.350351.com/bianchengyuyan/CSS/314781.html
MORE: http://www.cnblogs.com/jikey/archive/2012/03/28/2420704.html
Run:
Configuration: Ctrl+alt+s.
Alt+f2.
Common shortcut keys:
http://www.36ria.com/5700
Web Storm Getting Started Guide:
http://www.36ria.com/5884
Webstorm installation of Vim and shortcut key settings
Webstorm installation of Vim and shortcut key settings
Lucky to catch the December 21, 2012 "Doomsday" promotion, cheap to buy this is known as the smartest JavaScript IDE software.
I've always been very picky about tools, because they're from. NET into a web front-end, after trying the sublime Text 2, or think of the Web Essential, Vsvim and the like plug-in full, better use also more beautiful.
At the same time, as a vim beneficiary, how much of the IDE's support for VIM has affected my choice. With the support of Vim, the vsvim of VS and the vintage of sublime have some drawbacks. A variety of reasons, so I am full of expectations of Webstorm.
Installing the VIM Plugin
In the main interface with the shortcut key Ctrl+alt+s open the settings interface, the left navigation bar selected plugin items, such as:
When plugins is selected, all installed plugins are listed on the right and we want to install a new plugin, so click Browse Repositories.
The pop-up new window lists all plugins by default, we filter by entering Ideavim in the search box in the upper right corner, and then right-click on download and install on Ideavim, such as:
The download progress will be displayed in the status bar at the bottom of the Webstorm main window, which will prompt you to restart the Web storm for the plugin to take effect.
After rebooting, it is already the input mode of VIM. When you open the Tools menu, you'll see two more items.
Vim Emulator: Toggles whether to use Vim input mode.
Reconfigure VIM Keymap: Set shortcut keys. We'll use it later to set the shortcut key.
Set shortcut keys
For a long time working under Windows, using VIM is inevitably paired with some Windows shortcut keys, such as CTRL + C, CTRL + V, in the Gvim, VsVim, vintage, have made compromises and adopted the behavior of Windows. But webstorm default does not keep these shortcuts in the vim of the central role. That's okay, here's how to fix this.
Create a new set of keyboard mappings and let vim use this set of mappings.
(I installed the Vim plugin, into the VIM edit mode, CTRL + Z default revocation, with, CTRL + C NO).
First, the main interface with the shortcut key Ctrl+alt+s open the settings interface, the left navigation bar selected Keymap items, such as:
Next look: http://www.cnblogs.com/dc10101/archive/2013/01/02/2841900.html
Http://cssha.com/webstorm/?replytocom=