You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've asked for help on stackoverflow where I was suggested this can actually be a bug to report so here it is.
I'm switching to VSCode but at this point all my sources are quite messed up and I manage to pinpoint what the problem is.
Basically when a tabulation char follows a word which is shorter than the editor.tabSize value VS will insert the amount of spaces in its settings minus the word length when it should probably insert said value PLUS the editor value.
An example code rendered in Notepad:
Same code rendered by VSCode with editor.tabSize=4:
Every instruction is followed by ONE tab but VSCode requires TWO if tab follows a word shorter than tabSize.
Here tabs following "LEA" instructions end up being only one space long (tabSize minus length of word)
Is there a way to prevent this annoying behaviour? Changing all the occurencies in code would be quite a long work and they would be messed up when opened in other editors, surely not a solution.
Thanks!
VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.19045
Modes: Unsupported
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz (12 x 4104)
you can change the size of the tabs in the bottom right corner
looks like Notepad used 8wide tabs
while VSCode defaults to 4wide
there's more options in settings
tabs are 'bound' to a grid
placing a tab within any of the 4spaces of a 'cell' will padd it out to the end of that 'cell'
the problem is you have instructions that are below and above a multiple of 4 chars long, meaning they end in different cells
I've asked for help on stackoverflow where I was suggested this can actually be a bug to report so here it is.
I'm switching to VSCode but at this point all my sources are quite messed up and I manage to pinpoint what the problem is.
Basically when a tabulation char follows a word which is shorter than the editor.tabSize value VS will insert the amount of spaces in its settings minus the word length when it should probably insert said value PLUS the editor value.
An example code rendered in Notepad:
Same code rendered by VSCode with editor.tabSize=4:
Every instruction is followed by ONE tab but VSCode requires TWO if tab follows a word shorter than tabSize.
Here tabs following "LEA" instructions end up being only one space long (tabSize minus length of word)
Is there a way to prevent this annoying behaviour? Changing all the occurencies in code would be quite a long work and they would be messed up when opened in other editors, surely not a solution.
Thanks!
VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.19045
Modes: Unsupported
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (3)
A/B Experiments
The text was updated successfully, but these errors were encountered: