Skip to content

Add option to change hexadecimal size display to decimal #14918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liquidev opened this issue May 28, 2023 · 1 comment · Fixed by #14929
Closed

Add option to change hexadecimal size display to decimal #14918

liquidev opened this issue May 28, 2023 · 1 comment · Fixed by #14929
Assignees
Labels
A-config configuration A-hover hover feature C-feature Category: feature request

Comments

@liquidev
Copy link

I just updated to rust-analyzer 0.4.1531-standalone (f6e3a87bf 2023-05-27) and noticed that the size numbers when you hover over a type are now in hexadecimal:

struct RectData // size = 0x14, align = 0x4

I find decimal numbers much easier to read, and would like a setting that allows you to change the format back to what it used to be.

@liquidev liquidev added the C-feature Category: feature request label May 28, 2023
@HKalbasi
Copy link
Member

I think there should be a config variable for each item (size, align, and offset) with options hex, decimal, both, and nothing. And for the default I think the following works:

  • size = both
  • align = nothing (who care about align?)
  • offset = hex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration A-hover hover feature C-feature Category: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants