5,523 questions
726
votes
14
answers
677k
views
What to gitignore from the .idea folder?
Possible Duplicate:
Intellij Idea 9/10, what folders to check into (or not check into) source control?
I started using WebStorm for web development and am not sure what to add and what to exclude ...
376
votes
5
answers
110k
views
WebStorm/PhpStorm double quotes in TypeScript auto import
I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates.
WebStorm/PhpStorm auto import adds import statements with double quotes and ruins the style. I ...
267
votes
6
answers
155k
views
Difference between WebStorm and PHPStorm
I'm choosing an IDE for web development and I would like to know what the differences between WebStorm and PHPStorm are.
I couldn't find any major points on JetBrains' website and even Google didn't ...
254
votes
7
answers
131k
views
ESLint: TypeError: this.libOptions.parse is not a function
I was getting started with Next.js on WebStorm 2022.2.1 Build #WS-222.3739.57.
I created a new Next.js project with TypeScript enabled, and that's all.
The error is shown below:
TypeError: this....
182
votes
13
answers
73k
views
How can I change the file type association of an existing file in WebStorm?
I accidentally created a file with no extension and I chose the wrong file type association. Text Document I think. I renamed it to have the .js extension which is what I wanted, but now it's stuck ...
173
votes
4
answers
44k
views
How do I use WebStorm for Chrome Extension Development?
I just bought WebStorm 5 and so far have been really enjoying its Inspection features. One hitch I've run in to when developing my Chrome extension is that it doesn't recognize the chrome variable:
Is ...
160
votes
8
answers
96k
views
How to fight tons of unresolved variables warning in WebStorm?
I have a function that takes data from server:
function getData(data){
console.log(data.someVar);
}
WebStorm says that someVar is an unresolved variable.
How can I get rid of such warnings?
I see ...
144
votes
18
answers
109k
views
How to open webstorm from terminal
To edit files from terminal I use subl (for sublime text) in order to edit the file;
example: If i need to edit app.js file I use subl app.js
Is there any way I can set up webstorm to open from the ...
138
votes
7
answers
43k
views
How can I get WebStorm to recognize Jasmine methods?
I have a node.js project that contains some Jasmine specifications. The specifications are in a spec/ subdirectory and have the .spec.coffee extension, as required by jasmine-node.
When I open one of ...
131
votes
9
answers
83k
views
How to make WebStorm format code according to eslint?
I've specified eslint configuration for my WebStorm project. But it does not seem to apply to code reformat feature. For example, it continues to format import { something } from 'somewhere' as import ...
129
votes
5
answers
38k
views
Adding spaces between imports and braces in WebStorm
Is it possible to add spaces between imports and braces in WebStorm's auto-import feature?
Currently how the auto import looks like:
import {AbstractControl} from '@angular/forms';
I want to change ...
117
votes
7
answers
67k
views
Webstorm: "Cannot Resolve Directory"
This is starting to bug me and I'd either like it turned off or fixed. So Webstorm has a sweet feature in it's HTML parser that will attempt to resolve directories in strings that are supposed to ...
113
votes
3
answers
25k
views
Add space in self closing tags before in self closing tags
How do you include a space before the closing tags in self closing tags with WebStorm/IntelliJ-based products?
Default settings turns <ReactComp /> to <ReactComp/>, which is against one ...
106
votes
7
answers
133k
views
How to auto format code in WebStorm?
I'm looking for a way to auto-format my code in the WebStorm IDE?
98
votes
10
answers
41k
views
Folders missing in project pane in Webstorm
I've built a project in WebStorm and then submitted the project to GitHub.
When I rebooted the computer and relaunched WebStorm (and the project), all I can see in the project pane is the root files, ...
94
votes
13
answers
46k
views
Does webstorm have some shortcut for console.log or console.info?
Just tired of typing console.log again and again, and do not find a way like Sysout + Control + Space in Eclipse will create System.out.println().
93
votes
7
answers
94k
views
How to remove unnecessary blank line on code formatting in IntelliJ?
Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?
86
votes
2
answers
29k
views
How to open recently closed file in PhpStorm?
I am looking for shortcut to open recently closed file in PhpStorm.
I know some similar shortcuts but I am looking for command which is the same like Ctrl + Shift + T in browsers...
85
votes
16
answers
224k
views
WebStorm shortcut to comment a line
Is there a way in WebStorm to comment or uncomment a specific line or selected block of source code with shortcut?
I tried to use CTRL + / but it doesn't work for me.
81
votes
8
answers
50k
views
Ignore node_modules in Webstorm when using navigation pop-up
Is it possible to ignore searching the node_modules folder when using WebStorm's navigation pop-up window (Command + Shift + N)?
This makes it really annoying when wanting to quickly navigate to, ...
80
votes
5
answers
50k
views
WebStorm “Let definition are not supported by current JavaScript version” [duplicate]
I am trying to use new tools available for coding in JavaScript. I've seen the post PhpStorm "Let definition are not supported by current JavaScript version". I've tried as suggested over ...
79
votes
12
answers
60k
views
How to use WSL as default terminal in WebStorm or any other JetBrains' products?
I am currently using Windows 10 with WSL Ubuntu 18.04 installed. I am trying to use WSL as the default terminal in WebStorm however, I am able to use the bash from WSL but the default directory would ...
79
votes
8
answers
27k
views
Is there a way to sync settings across JetBrains IDEs?
What is the best way to sync similar settings across JetBrains IDEs? For example I have PyCharm and PhpStorm, both of which support CSS and HTML, and I would like to have all of the syntax coloring, ...
78
votes
10
answers
44k
views
Get rid of the middle grey line in the workspace
How can I remove that grey line on the code workspace ..
Image:
Look at that vertical grey line at the right side ..
76
votes
13
answers
37k
views
How can I setup webstorm to automatically add semi-colons to javascript functions, methods, etc
When I write Javascript, I use semi-colons. However when I write in webstorm/phpstorm, it auto completes braces and brackets, but doesn't auto-add a semicolon. I know that isn't required per the ...