![]() I can run an "organize imports" keyboard shortcut to organize my imports, clean up/remove unused imports, etcĬan hit CTRL+Enter to get intellisense auto-complete for imports in a way that VS Code doesn't seem to do as well In VS Code, I've seen developers often delete the last character of the thing that needs to get imported so it will prompt them, and then it might add the import a component or a function), WebStorm will light it up, give me an error message and with a simple keyboard shortcut it will add the import statement. When I'm working in a JavaScript or TypeScript file in WebStorm, when I reference something that is not currently imported (eg. Related to the previous bullet, debugging and stepping through code (either the running app, or when in testing) seems a lot easier to configure, more consistent and more reliable in WebStorm It's also more consistent in WebStorm vs VS Code, since separate testing plugins in VS Code means that going from a project using one test runner (Jest) to a project running another (eg. I like WebStorm's support and built-in GUI for running unit tests a lot more than the Jest plugins I've tried for VS Code. For example, here are a few off the top of my head:įile nesting works great in WebStorm, but is missing in VS Code: Nothing really proprietary there.īut some of the more subtle, built-in features of WebStorm I just find missing or in some way lacking in VS Code. ![]() 2 spaces instead of tabs) are configured automatically. editorconfig files, as many editors do, so our standards (eg. WebStorm has support for eslint, I think it even works out of the box if I remember correctly. I ended up using both IDEA and VSCode for different things: IDEA as an IDE when I need to work with projects for more than an hour, and VSCode when I just want to quickly edit a file, use the live share or remote editing. Live share: it's a quite convenient thing if you need it Remote editing mode: everything runs so smoothly without having project files on your laptop Here's an example: you can focus a folder and trigger search, which will search in this folder it will honor exclusions, but in the same time it understands that when you do it from an excluded folder, you do want to search there Some feeling of context everywhere, because everything is built by one developer, instead of disjoint experience of using plugins in VSCode. Refactoring options, even text regex replacing is better in details Git integration and especially merge capabilities, local history, shelvesets Instant indexed search, search exclusions, searching in big files, etc. I'm experimenting VSCode quite a lot as a text editor and I like its look and feel, however whenever I try it as an IDE, I miss features from WebStorm/IDEA: If you want to organize the imports use Ctrl+Alt+O, to execute all the formatting features just use Ctrl+Shift+Alt+T.Exactly the same feelings. If you have a problem with organisation of the code you can use Ctrl+Alt+L to format the code. Instead of creating manually test classes you can use the shortcut Ctrl+Shift+T.įormatting and cleaning. Instead of using search-replace – focus cursor on variable/constant/class/method and press Shift+F6. If you need to edit multiple lines use Ctrl+Ctrl(hold)+Arrow. Why write them multiple times? Write the code once and use Ctrl+d to duplicate it. Sometimes you need to write multiple similar lines and pass different parameters. Just use Ctrl+W to expand the selection, or Ctrl+Shift+W to narrow. ![]() ![]() Similary you can do this for focused value to extract it to variable using Ctrl+Alt+V, or to constant using Ctrl+Alt+C.ĭid you know that you don’t need to manually select the strings, or some grouped parts of the code by a mouse, or arrows? There is a quite simple shortcut to select string, method name, field name or any other part of the code. To extract some part of the code to method – use Ctrl+Alt+M. To iterate over the issues just use F2.ĭo you want to get rid of manual implementation of constructors, getters, setters, toString, equals and hashCode? You can use automatic generation of the code – Alt+Insert. Issue suggestionsĭo you have some red (or yellow) underlined parts in the code? Focus cursor on one of them and press Alt+Enter and see IDE’s suggestions how to fix the issue. In the future, I will provide you some keyboard shortcuts to navigate through projects. It led me to the idea of writing a series of blog posts about some interesting functionalities/plugins that Intellij Idea provides. Become the Chopin of your keyboard.ĭuring pair coding with my fellow Java developers, I’ve noticed that some of them are not familiar with some useful features of IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |