How to automatically set configuration in WebStorm - webstorm

Is there any option to set auto configuration in WebStorm (latest version 2020.1)?
Like if I store all the required run configuration details in a file, when I open the WebStorm it should automatically set the run configuration.
Is there any way to do that? Any suggestion here please.

Related

How do I save SFTP settings for all new projects?

I have a PHP project where I already have the SFTP settings configured under deployment. However, whenever I make a new project, the deployment section is blank and I have to reconfigure it again each time. Is there a way to save these settings so I don't have to keep reconfiguring it with each new project I create?
In the deployment configuration, uncheck the Visible only for this project checkbox.

WebStorm local history flooded with prettier file watcher

Using WebStorm 2019.3.2. I setup a file watcher for prettier, and have it configured with Auto-save edited files to trigger the watcher. It works great, but when I try to use the Local History feature, it has hundred of entries, each time prettier runs.
I could only find in the doc a way to configure the retention of the Local History, not the frequency. Is it possible to reduce the number of entries when a prettier file watcher is enabled?
File watchers or third-party plugins are no longer required for prettier in webstorm 2020.1
changelog
how to configure prettier in webstorm
EDIT:
You can set prettier as default formatter in webstrom 2020.2
changelog

Can I run/debug files with babel-node in WebStorm?

I know there are Run/Debug configurations in WebStorm, but I don't know how to configure the context menu (when I right click in a file, it has Run... and Debug... in the menu, but I can't find where to configure this).
Run configurations are created via Run | Edit Configurations... : press +, choose Node.js, in created configuration specify babel-node as Node Interpreter:
But note that debugging doesn't work well when using it. I'd strongly recommend using -r #babel/register Node.js parameter instead - see comments in https://youtrack.jetbrains.com/issue/WEB-21949

webstorm IDE: program path not specified when running JS script how can I fix this?

I'm trying to run my JavaScript script, however the message keeps on giving me an error saying:
Configuration is still incorrect. Do you want to edit it again?
Is there a way to fix this?
I had a similar error and it was because I did not specify my path to where I installed node.js. In webstorm, go to File -> Settings -> Language&Frameworks -> Node.js and NPM and in the Node interpreter text box, point it to the path of where node.js was installed. For me it was at C:\Program Files (x86)\nodejs.
If you didn't install node.js and npm, you need to do so.
If you are trying to debug js code and you are using a chrome browser, you need to install their extension and use "Inspect in WebStorm" action.
Found the above behavior occurs with the WebStorm project folder within the OneDrive path (Windows 10). As shown in the image of the run configuration, WebStorm shows and error for location of the path to the JavaScript file even though it is correct. Click Run > Continue from here and it executes with node.js as expected. Move the project to a folder outside of the OneDrive path and the error is gone.
Image: Webstorm Run Configuration Error in OneDrive

Sitecore TDS on deploy cannot find map.xml

I have created a Sitecore TDS project and when I try to package an update file, I get the following error:
The following exception occured opening the IconPath map: Could not
find a part of the path '{project path}\IconCache\Map.xml'
I'm not sure how I can fix this. Any ideas?
Check the following:
Does the Map.xml file exist in the target location?
Can TDS write to the target location, e.g. is the file read only or are there insufficient privileges.
If neither of these solve your problem then contact Hedgehog support.
That is a very odd error, as the icon cache shouldn't really be a part of the update package. How are you packaging the update file? Are you configuring the Update Package tab in the TDS project properties to generate packages on build for a specific build configuration?