Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Ivan Enderlin 🦀
@hywan@floss.social  ·  activity timestamp 4 months ago

Magic Completions in rust-analyzer (a Language Server Protocol implementation for Rust), https://rust-analyzer.github.io/book/features.html#magic-completions.

- expr.if expands to if expr { } or if let … { } for Option or Result
- expr.dbg expands to dbg!(expr)
- expr.match expands to match expr { … }
- tmod expands to #[cfg(test)] mod tests { use super::*; #[test] fn test_name() { } }

#RustLang#LSP #completions

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login