We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This isn't a bug, but just a help. In your code pipe characters formatted like that:
pub fn difficulty_bytes_as_u128 (v: &Vec<u8>) -> u128 { ((v[31] as u128) << 0xf * 8) | ((v[30] as u128) << 0xe * 8) | ((v[29] as u128) << 0xd * 8) | ((v[28] as u128) << 0xc * 8) | ((v[27] as u128) << 0xb * 8) | ((v[26] as u128) << 0xa * 8) | ((v[25] as u128) << 0x9 * 8) | ((v[24] as u128) << 0x8 * 8) | ((v[23] as u128) << 0x7 * 8) | ((v[22] as u128) << 0x6 * 8) | ((v[21] as u128) << 0x5 * 8) | ((v[20] as u128) << 0x4 * 8) | ((v[19] as u128) << 0x3 * 8) | ((v[18] as u128) << 0x2 * 8) | ((v[17] as u128) << 0x1 * 8) | ((v[16] as u128) << 0x0 * 8) }
But in my vscode formatting is that:
pub fn difficulty_bytes_as_u128(v: &Vec<u8>) -> u128 { ((v[31] as u128) << 0xf * 8) | ((v[30] as u128) << 0xe * 8) | ((v[29] as u128) << 0xd * 8) | ((v[28] as u128) << 0xc * 8) | ((v[27] as u128) << 0xb * 8) | ((v[26] as u128) << 0xa * 8) | ((v[25] as u128) << 0x9 * 8) | ((v[24] as u128) << 0x8 * 8) | ((v[23] as u128) << 0x7 * 8) | ((v[22] as u128) << 0x6 * 8) | ((v[21] as u128) << 0x5 * 8) | ((v[20] as u128) << 0x4 * 8) | ((v[19] as u128) << 0x3 * 8) | ((v[18] as u128) << 0x2 * 8) | ((v[17] as u128) << 0x1 * 8) | ((v[16] as u128) << 0x0 * 8) }
I want to format code like yours. How can i do that? Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This isn't a bug, but just a help. In your code pipe characters formatted like that:
But in my vscode formatting is that:
I want to format code like yours. How can i do that? Thanks.
The text was updated successfully, but these errors were encountered: