- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 409
Closed
Labels
component: hls-alternate-number-format-pluginlevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: enhancementNew feature or requestNew feature or request
Description
When converting from one number format to another, we lose the information of _.
The binary format is rather hard to read, so maybe it might be nice to offer a code action that translates a number format to a predefined format using _?
For example, let's assume this:
foo = 0b111001100110We could offer a code action that translates this number to
foo = 0b1110_0110_0110Similarly, we could offer to fix typos ala:
foo = 0b1110_011_00110Not sure whether this is worth the extra complexity, it is just an idea.
I think it would make sense to offer for each number format the following grouping styles:
- decimal: 3, 4 (e.g., 123_456and1234_5678)
- hexadecimal: 2,4 (0xAB_CD,0xC0_FFEE)
- octal: 2,4,8
- binary: 4
Metadata
Metadata
Assignees
Labels
component: hls-alternate-number-format-pluginlevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: enhancementNew feature or requestNew feature or request
