Skip to content
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

Java Refactor changes tab-size from 4 spaces to 2 #236823

Open
crowmagnumb opened this issue Dec 22, 2024 · 1 comment
Open

Java Refactor changes tab-size from 4 spaces to 2 #236823

crowmagnumb opened this issue Dec 22, 2024 · 1 comment
Assignees

Comments

@crowmagnumb
Copy link

Type: Bug

I have Tab-Size set to 4, Use Spaces for Tabs, and Auto Detect Indentation turned off. When I refactor my java code (note, javascript, typescript, python refactor do NOT have this problem), any file that it changes in the refactor suddenly has all of it's 4-space tabs changed to 2-space tabs! I think it's only files that I do not currently have an editor open for.

VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 6.5.0-44-generic snap
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz (12 x 2870)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: unavailable_software
Load (avg) 2, 8, 8
Memory (System) 30.97GB (8.93GB free)
Process Argv --no-sandbox --force-user-env --crash-reporter-id e31fd552-c4d9-4f9b-b9b7-0f83c835e783
Screen Reader yes
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions (47)
Extension Author (truncated) Version
ng-template Ang 19.0.3
toml be5 0.6.0
markdown-preview-github-styles bie 2.1.0
vscode-eslint dba 3.0.10
vscode-deno den 3.43.1
gitlens eam 16.1.1
EditorConfig Edi 0.16.4
prettier-vscode esb 11.0.0
vscode-firefox-debug fir 2.12.0
kotlin fwc 0.2.36
pug2html gin 0.0.5
copilot Git 1.250.0
copilot-chat Git 0.22.4
angular-essentials joh 18.0.0
Angular2 joh 18.0.2
vscode-peacock joh 4.2.2
rainbow-csv mec 3.13.0
vscode-docker ms- 1.29.3
debugpy ms- 2024.15.2024121701
isort ms- 2023.13.13171013
python ms- 2024.22.0
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.10.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-containers ms- 0.394.0
remote-ssh ms- 0.115.1
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.88.5
vscode-remote-extensionpack ms- 0.26.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.2
angular-console nrw 18.34.0
material-icon-theme PKi 5.16.0
remote-vscode raf 1.1.0
fabric8-analytics red 0.9.5
java red 1.38.0
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
vscode-gradle vsc 3.16.4
vscode-java-debug vsc 0.58.1
vscode-java-dependency vsc 0.24.1
vscode-java-pack vsc 0.29.0
vscode-java-test vsc 0.43.0
vscode-maven vsc 0.44.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants