microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.51k stars 28.98k forks source link

Disabling word wrap in Terminal changes font #191269

Open parsley72 opened 1 year ago

parsley72 commented 1 year ago

Type: Bug

When I run a build task defined in tasks.json it outputs to the Terminal window. The lines can be quite long so to disable word wrap I do Alt Z. But this also changes the font to something weird which makes the text hard to read.

VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.22621 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800H with Radeon Graphics (16 x 3194)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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| |Load (avg)|undefined| |Memory (System)|39.37GB (6.28GB free)| |Process Argv|--crash-reporter-id 9d132c9a-0b2c-484e-a2a5-cb1dbd299a3b| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.15.90.1-microsoft-standard-WSL2| |CPUs|AMD Ryzen 7 5800H with Radeon Graphics (16 x 3193)| |Memory (System)|19.22GB (15.98GB free)| |VM|0%|
Extensions (26) Extension|Author (truncated)|Version ---|---|--- systemd-unit-file|coo|1.0.6 better-cpp-syntax|jef|1.17.2 jupyter-keymap|ms-|1.1.2 remote-wsl|ms-|0.81.0 atlascode|atl|3.0.4 doxdocgen|csc|1.4.0 vscode-markdownlint|Dav|0.51.0 gitlens|eam|14.2.1 shell-format|fox|7.2.5 vscode-github-actions|git|0.26.1 todo-tree|Gru|0.0.226 linuxkerneldev|mic|0.5.6 isort|ms-|2023.10.1 python|ms-|2023.14.0 vscode-pylance|ms-|2023.8.40 cmake-tools|ms-|1.15.31 cpptools|ms-|1.17.4 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.7.0 vsliveshare|ms-|1.0.5883 vscode-groovy-lint|Nic|2.0.0 vscode-xml|red|0.26.1 vscode-yaml|red|1.14.0 shellcheck|tim|0.33.1 cmake|twx|0.0.17 clang-format|xav|1.9.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30803844 3biah626:30602489 89544117:30613380 showlangstatbar:30737416 03d35959:30757346 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30804715 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 synctok:30815622 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30812749 ```
meganrogge commented 1 year ago

Please provide a screenshot or a gif illustrating the problem (attaching images won't work via email, you need to go to github.com). See this wiki page for more general info on how to report actionable terminal issues. /label info-needed terminal

parsley72 commented 1 year ago
image
meganrogge commented 1 year ago

a gif would be helpful @parsley72 . also your settings.json

parsley72 commented 1 year ago

/c:/Users/tomis/AppData/Roaming/Code/User/settings.json

{
    "[cpp]": {
        "editor.defaultFormatter": "xaver.clang-format"
    },
    "git.autofetch": true,
    "git.confirmSync": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "git.mergeEditor": false,
    "redhat.telemetry.enabled": false,
    "workbench.colorTheme": "Default Dark+",
    "cmake.configureOnOpen": false,
    "git.openRepositoryInParentFolders": "always",
    "[python]": {
        "editor.formatOnType": true,
        "editor.defaultFormatter": "ms-python.python"
    },
    "[c]": {
        "editor.defaultFormatter": "xaver.clang-format"
    },
    "git.suggestSmartCommit": false,
    "editor.language.colorizedBracketPairs": [],
}
parsley72 commented 1 year ago

Word Wrap

Tyriar commented 1 year ago

The canvas is being stretched beyond the max texture size, this is tracked upstream at https://github.com/xtermjs/xterm.js/issues/4186

Workaround is to size the terminal manually via Terminal: Set Fixed Dimensions when there's a very long wrapped line like this.