The new intention also works for methods in classes. Press Alt-Enter on the name in the function definition and select the corresponding intention! You can now very easily convert a function to a variable that holds an arrow function. Let us know what you think about this feature! Convert a function to a variable holding arrow function You can configure their behavior or disable them completely in Preferences | Editor | General | Appearance – Show parameter name hints. Now, we have enabled similar parameter hints in JavaScript files as well! If you work with TypeScript files in WebStorm, you should be familiar with the parameter hints that show you the names of a method’s parameters. This will work if there’s a TypeScript definition file present inside the package (like in moment or redux) or if the package contains sources written as ES modules.Īnd of course, autoimports in JavaScript work for symbols exported in the ES modules in your project. We have extended the autoimports in JavaScript files to symbols defined in the project’s dependencies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |