![]() Related impl-s are now moved together with the items, and the items with related impl– s are grouped together for easier navigation in the refactoring dialog: If you select a piece of code in the editor and then call Move, the refactoring will take your selection into account when suggesting the items to be moved. The Move ( F6) refactoring now supports re-exports when moving a file: If you select a region and call Reformat Code ( Ctrl+Alt+L on Linux/Windows, ⌥⌘L on macOS), the IDE’s formatter will be used instead. If you would prefer Rustfmt to be the default formatter for your code, tick the Use rustfmt instead of built-in formatter checkbox in Settings / Preferences | Languages & Frameworks | Rust | Rustfmt.Ĭurrently, this option doesn’t apply when reformatting a selection. You can also jump to a feature declaration from a cfg or cfg_attr attribute in your Rust code: IntelliJ Rust now gives completion suggestions and provides navigation across features in Cargo.toml. New experimental engine for name resolution.Now let’s take a look at the improvements that have been made to this functionality already, along with other updates the plugin has received over the last few months: In brief, you can now toggle workspace features right in the Cargo.toml file, and code insight across the whole of your project will be adjusted accordingly. ![]() In the previous blog post on IntelliJ Rust, we described the plugin’s major update of the 2020.3 release cycle – more support and a new UI for Cargo features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |