Suggestions for variable namesĪmong the IDE JavaScript preferences, you can find a new option called Suggest variable names. You can disable this behavior in Preferences | Languages and Frameworks | JavaScript – Expand method bodies in completion for overrides. Here’s an example of the generated method: Now, when you want to override a method from the parent class or interface and select it from the completion suggestions, WebStorm will automatically add parameters, super() call and, if possible, the type info. Now it can warn you if the = null or != null check is always true or always false.Ĭompletion for overrides adds method body We have also improved the Unsound type guard inspection, which validates the conditions with typeof. With the new inspection called Object in ‘null’ or ‘undefined’, WebStorm can now better detect situations when you will get a TypeError because a method is invoked on a value that is undefined or null, or it is passed to a function, or its property is used. Here’s an example with a React component: substitute an arrow function for the event handler with the field, and you can now remove the binding in the constructor. 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. Other IDE improvements: unified Search popup, a new plugin configuration, and drag folder to Welcome screen to open it.ĭownload WebStorm 2018.3 JavaScript and TypeScript support Autoimport symbols from the project’s dependencies.Testing: Structure view for test files, Go to failure for tests, and running a single Protractor test or suite. Debugging: Live Edit without Chrome extension, and adding multiple variables to debugger’s watches.Linters integrations: suppress comments for TSLint rules, linting TypeScript files with ESLint, and an option to override severity from ESLint or TSLint config.Version Control: Git submodules, tool window for GitHub Pull Requests, and better support for precommit hooks.Accessibility: new high-contrast UI theme and screen reader support for gutter icons.Editor: multiline Todos, indent size in the status bar, and disabling code formatting for specific files and folders.Node.js development: completion for previous package versions in package.json and debugging Node.js worker threads.Development with Vue.js: support for Vuetify.Development with React: completion for lifecycle methods and new inspection for the undefined components. Development with Angular: major improvements in the Angular templates support and fixes in AngularJS support.Style sheets: Extract ruleset and move it to another file, new code style options, and updated inspection for CSS shorthand properties.HTML and JSON support: accessibility inspections for HTML, improved Remove action for HTML and JSX tags, and improvements in JSON support.JavaScript and TypeScript support: autoimports in JavaScript for symbols from the project’s dependencies, parameter hints in JavaScript, convert to a variable with arrow function, better ‘null’ and ‘undefined’ checks, suggestions for variable names, and TypeScript 3.1.Here are the features and improvements grouped by the WebStorm subsystems: They are compiled from the EAP blog posts that we’ve been publishing here for the past two months. In this blog post we would like to share with you the detailed release notes for the WebStorm 2018.3 update. Much-improved Angular support, GitHub Pull Requests, debug for Node.js worker threads, and lots more await!Įxplore the top new features and download WebStorm 2018.3 on our website. WebStorm 2018.3 brings lots of exciting new features and enhancements across the board.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |