5,523 questions
0
votes
0
answers
17
views
Setting non-shared environmental variables in shared WebStorm Run Configs
I have a few shared Run Config files (they all run something like pnpm run xy). One of them needs to have a specific token in order to function correctly. This Run Config fails without the token, but ...
1
vote
0
answers
40
views
How do I specify to WebStorm the canonical definition of the Vuex store?
Problem
I have a Vue project that uses Vuex for state management. Parts of the Vuex store are often mocked in unit tests (Vitest).
When Vuex stores are defined in both the main production code and in ...
0
votes
1
answer
82
views
WebStorm (IntelliJ, JetBrains) shows 'unused constant' warning even when constant is being used in TSX
I use Styled Components with Emotion and issue a "Unused Constant" alert, even though I actually use the constants defined above when I use them right below.
This is not a warning from ...
1
vote
0
answers
45
views
How to make WebStorm auto-import Vuetify types from vuetify/framework instead of internal vuetify/lib/components/*
I’m working on a Vuetify 3 + Vite + TypeScript project in WebStorm.
When I auto-import Vuetify types (e.g. SortItem from the data table), WebStorm generates this import:
import type { SortItem } from &...
-1
votes
2
answers
136
views
Can't change an *ngFor to a @for. Its @for(commune of communes) is rejected, telling that Commune[] needs an iterator. But Commune is an interface
I have a Commune interface generated by an OpenAPI generator:
/** Une commune du Code Officiel Géographique */
export interface Commune {
/** Code de la commune */
codeCommune: string;
/*...
-2
votes
1
answer
68
views
What’s the difference between the “Float” and “Window” view modes for tool windows in JetBrains IDEs?
I can detach any tool window (e.g. Run, Terminal) by picking View Mode ▸ Float or View Mode ▸ Window from the gear icon.
Both put the panel outside the main frame, but I can’t figure out how they ...
1
vote
1
answer
66
views
How can I make WebStorm resolve SCSS @use "package:..." imports from another Dart package?
I’m working on a Dart project that uses the sass_builder package to compile SCSS files. I have a shared Dart package (let’s call it my_package) that contains SCSS utilities, and I want to import them ...
1
vote
0
answers
65
views
globalProperties variables are not showing up in the Vue 3.5 template
IDE: Webstorm 2024.1.5
My app on Vue 3.5.13, Vite, Typescript. I have plugin
export default {
install: (app: App) => {
app.config.globalProperties.$i18n = useI18n;
},
};
I plug it in main....
0
votes
0
answers
24
views
Selection of the current line with a shortcut in WebStorm (entire line) [duplicate]
I need to select the current line with a shortcut, entire line. I found Shift + Home and Shift + End which works but not precisely how I need it to work. I mean, if the caret is not in the first ...
2
votes
0
answers
77
views
Cannot get node to execute TypeScript that runs in WebStorm outside of WebStorm
I am running WebStorm 2024.4.3.5 and created a Node.js project, using Fastify, React, and TypeScript. I can run my server.ts file using the Edit Configuration Node.js menu item. The "Typescript ...
2
votes
0
answers
109
views
PhpStorm, Vue & TypeScript inlay hints for constants
When viewing TypeScript files in PhpStorm, constants have inlay hints like so:
The inlay hint in the screenshot above is Ref<boolean, boolean> and it is automatically displayed by PhpStorm.
Is ...
0
votes
0
answers
111
views
How to force eslint/prettier to not touch class member modifiers order?
Here is the problem:
When I run fixer then this
export class Test {
public declare id: number;
}
transforms into this
export class Test {
declare public id: number;
}
It is a problem for me ...
0
votes
1
answer
177
views
WebStorm debugger doesn't stop at breakpoints
I'm using WebStorm on a project running TypeScript with ts-node. Normally, I'd set up my debugger by going to package.json and clicking on the "play" button to the left of the start script ...
0
votes
2
answers
69
views
WebStorm 2022, unresolved function or method includes()
I'm using WebStorm 2022.2.3.
IDE shows error unresolved function or method includes()
The code sample is:
const animals = ['CAT','DOG'];
const isAnimal = (name: string) => animals.includes(name)
...
0
votes
1
answer
34
views
What is this background editor highlight in JetBrains IDEs?
This keeps happening in JetBrains IDEs, and by the time it happens I've forgotten to pay attention to what I was doing at the time that caused it. I've used the eyedropper tool to get the hex and ...
0
votes
1
answer
122
views
How do I place `node_modules/.bin` in my $PATH?
I created a project in WebStorm and I installed some commands, like tsc, locally as a dev dependency on yarn through the terminal. I could run these in the terminal by simply typing for example tsc.
...
0
votes
0
answers
31
views
Nuxt 3 Module – Debugging stops working when using a module component in the playground (WebStorm)
I created a new Nuxt module using the following command:
npx nuxi init -t module my-module
Debugging in WebStorm works fine as long as I don't use any component from the module.
However, as soon as I ...
1
vote
1
answer
38
views
Lighting and transitions for custom attribute values in WebStorm
I have string literals in javascript code and they have attributes whose values are methods, for example:
const test = `<div data-click="foo">test<div>`;
function foo() {}
...
3
votes
1
answer
757
views
WebStorm Debugger Not Working with Next.js (Breakpoints Not Being Hit)
I’ve been trying to set up the debugger for my Next.js project in WebStorm, but it’s not working as expected. I’ve read the Next.js and WebStorm documentation multiple times but couldn’t get it to ...
0
votes
0
answers
67
views
PhpStorm keeps spamming files into /tmp via SFTP
Some of my colleagues just encountered a weird bug. For some reason PhpStorm keeps sending files via SFTP to the /tmp folder until its full and the server (Ubuntu) is unresponsive. There's nothing to ...
0
votes
1
answer
74
views
WebStorm not recognizing methods of reactive objects
I am using WebStorm 2024.3.1.1 on MacOS for my current Vue.js project, but the recognition of class methods of reactive objects does not work as expected, i.e. WebStorm is displaying "unresolved ...
0
votes
0
answers
68
views
AWS SAM Debug Node Function in WebStorm with Optimal Configuration
I’m working with an AWS Lambda function written in Node.js, and I have a package.json file with several dependencies installed.
For local debugging, I downloaded the SAM template from AWS Lambda via ...
0
votes
1
answer
238
views
How to force PhpStorm to always show popup code completion alongside (AI) inline completion
Is there anyway of always showing the popup code completion alongside (AI) inline completion in PhpStorm/WebStorm?
My default view looks like below, where the inline completion shows, but there's no ...
0
votes
1
answer
85
views
Problems running tests in WebStorm because of 'tsconfig.base.json not found' error
My WebStorm IDE is having issues running tests from the Web3.js repo. I'm not able to run or debug tests because the ESLint raises an error showing a File '../../tsconfig.base.json' not found error. ...
-1
votes
2
answers
72
views
How to make line-by-line/multiline comments in VS Code in CSS?
I want to make comments from WebStorm like this:
/*.container {*/
/* display: flex;*/
/* align-items: center;*/
/* justify-content: center;*/
/* position: relative;*/
/*}*/
but in VS Code ...