WebStorm 2018.1

Ermöglicht die Integration in Prettier, Partial Git-Commits sowie eine bessere Unterstützung für Vue.js und React Native.
März 26, 2018
Neue Version

Funktionen

  • New documentation UI - WebStorm 2018.1 now inlcude a new, more compact, lightweight documentation popup. It uses a more clear and consistent format to present the available information about the method’s parameters, their type and their return type in JavaScript and TypeScript. It also renders Markdown used in the JSDoc comments.
  • TypeScript improvements - In addition to the support for the latest TypeScript 2.7 features, this update improves the Implement Members action and adds the new Surround with type guard quick-fix for unresolved properties. WebStorm now also recognizes TypeScript configuration files with names other than tsconfig.json.
  • Rename class and file together - Now if you run Refactor - Rename for a class, WebStorm will also suggest renaming the file and its usages if it has the same name as the class. And if you press Alt-Enter on the name of the class, interface or type, you will see a new intention that suggests renaming the file to this name.
  • Reformat with Prettier - With the new Reformat with Prettier action (Alt-Shift-Cmd/Ctrl-P), you can format the selected code, a file or a whole directory using Prettier.
  • Create a new Vue project - You can now create new Vue projects in WebStorm using Vue CLI.
  • Extract a Vue component - Create a new Vue component from an existing one, without any copy and paste - select the part of the template and use Refactor - Extract or press Alt-Enter and select Extract Vue Component. WebStorm will create a new single-file component, add an import for it, and pass all the data and methods to it with props.
  • Debugging React Native apps - With the updated React Native configuration, WebStorm now supports more run and debug scenarios: you can now separately configure how the bundler is started and also attach the debugger to an app that is already built and launched on a device. Moreover, you can now debug apps that use Expo right in the IDE.
  • Configuring package manager - It has been made easier to configure package managers in WebStorm - in the Node.js and npm preferences, you can select between npm and Yarn and then use it to install dependencies and run scripts. And if you open a new project with yarn.lock file, WebStorm will use Yarn in it if it’s installed.
  • New Node.js Debugger Console - Node.js debugger now has two console tabs - the Console tab that shows the output of the node process itself and the new Debugger Console where you can execute JavaScript, see the console.log messages, and jump to the location where console.log was called.
  • Partial commits in Git - With the support for partial Git commits you can now commit only selected changes from the file. Use checkboxes in the diff view of the Commit Changes dialog to select chunks of code you want to commit. You can also add changed lines of code to a new changelist using actions on the editor gutter and then commit the changelist.
  • More Git improvements - In the commit details, you can now click on the commit hash to jump to this commit in the Log. When you’re doing a rebase, there are now new Abort Rebase, Continue Rebase, and Skip Commit actions available in the Git Branches popup.
  • Completion and go to definition for classes - Cmd/Ctrl-click on the class name in HTML will now suggest navigating not only to its declaration in the compiled CSS file linked in this HTML file, but also to the Sass, SCSS or Less source. In HTML, code completion will suggest classes and id from all style sheets if there are no matching symbols in the linked CSS file.
  • Other improvements:
    • If you're migrating to webpack 4, WebStorm can now check and provide completion for option names in the webpack configuration file.
    • Similar to tests, you can now run npm scripts using icons right in the editor.
    • When you copy the HTML code to JSX files, WebStorm will automatically replace class and on-event handlers with React-specific attributes.
    • New inspection in package.json will warn you if an installed version of the package doesn’t match the specified range.
    • Better code completion for SVG properties and values in CSS files.
    • You can now synchronize the IDE settings across multiple machines using your JetBrains account.
    • Support for the ECMAScript proposals: escape sequences in template strings, RegExp lookbehind assertions and named capture groups, and class fields.
    • Improved code completion and go to definition for the dynamic imports with import().
Integration with Prettier

WebStorm

JavaScript- und TypeScript-IDE.

WebStorm ist auch verfügbar in:

Sie haben eine Frage?

Live-Chat mit unseren JetBrains-Lizenzierungs-Spezialisten.