News for hackers. Stuff that matters.
Re:Easy Mode Rust by josephg on Friday April 05, 2024 @08:47AM (#39941726)
Rustrover (IntelliJ) can do some of this. You can use quick actions to expand a macro inline in the IDE.
Re:Easy Mode Rust by t_mahmood on Friday April 05, 2024 @11:47AM (#39943853)
Intellij can also expand macro inline, But iirc you have to enable it in advanced settings.
Re:Easy Mode Rust by Tmpod on Friday April 05, 2024 @09:40AM (#39942244)
As can rust-analyzer, btw. It's very useful sometimes.
Re:Easy Mode Rust by chrisshroba on Friday April 05, 2024 @10:08AM (#39942551)
How would you interface with rust-analyzer to make it do this? As I understand it rust analyzer acts like an LSP to your IDE, which in turn doesn’t let you just make raw calls to rust analyzer
Re:Easy Mode Rust by diarrhea on Friday April 05, 2024 @11:53AM (#39943930)
In VSCode it’s just a command away (on the command palette).
Re:Easy Mode Rust by Vingdoloras on Friday April 05, 2024 @08:03PM (#39948742)
In addition to the already mentioned Command Palette, macro expansion is also available as a quick fix, either by clicking the light bulb icon when it appears, or triggering it via hotkey (Ctrl+. by default).