M
M
Max Maximov2014-08-14 22:23:51
css
Max Maximov, 2014-08-14 22:23:51

How to include libraries (CSS, JS) in WebStorm?

Hello.
Playing around with WebStorm, PhoneGap + Onsen UI . I created the PhoneGap + Onsen UI template project, then opened it in WebStorm, but I did not receive any code completion. Tried to add JS libraries, still the same. And how to add CSS - I didn’t find it at all.
The structure of the project, circled in blue is where I would like to get code completion in the project:
0ff05e0ddc694b80b3169fa7e5377f52.PNG
Well, the second image, how it works on Onsen UI, circled in blue is what does not work (in terms of code completion).
a8ae1c9e94f446228b45396be98ba528.PNG
PS
Template can be downloaded here , titled "Sliding menu".

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max Maksimov, 2014-09-08
@maximka19

Answer from JetBrains:

actually connecting libraries has nothing to do with custom HTML tags. In order for the IDE to recognize them, special support is required (as is done for AngularJS tags, for example). The easiest way to get rid of errors is to add the appropriate tags to the list of custom tags in Settings/Inspections/HTML/Unknown HTML tag. The easiest way to do this is with Alt + Enter - hover over the error, Alt + Enter, 'Add ons-sliding-menu to custom HTML tags'
After that, the tag will even appear in the compliment :) But it will not be interpreted in any special way, of course - none artificial intelligence is not to be expected here :)

A
Anton Chekhov, 2014-08-16
@chekhovrussia

(Removed. Misunderstood, sorry)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question