microsoft / vscode

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

换行 #178787

Closed ren-142326 closed 1 year ago

ren-142326 commented 1 year ago

Type: Bug

我更新到最新版本后,发现无法使用 Enter 直接进行换行,当我回退到 1.76.2 时,不会出现这样的问题

When I updated to the latest version, I found that I couldn't use Enter to wrap lines directly, and when I fell back to 1.76.2, this didn't happen

VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z) OS version: Windows_NT x64 10.0.22624 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-12700H (20 x 2688)| |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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.73GB (14.98GB free)| |Process Argv|--crash-reporter-id 294608f1-05f3-4541-8ebf-ec8c261db4ab| |Screen Reader|no| |VM|50%|
Extensions (268) Extension|Author (truncated)|Version ---|---|--- chrome-extension-developer-tools|aar|2.0.3 rollup-course|abl|0.0.3 codesnap|adp|1.3.4 three-js-snippets|aer|0.6.2 vscode-nginx-conf|ahm|0.1.3 vscode-javascript-snippet-pack|aka|0.1.6 to-typescript|ale|0.3.0 Bookmarks|ale|13.3.1 project-manager|ale|12.7.0 altostra|Alt|1.57.15 aya-vue3-extension-pack|Ama|0.0.7 webgl-wuweierwei-plugin|and|1.0.4 jest-snippets|and|1.9.1 browse-lite|ant|0.3.2 unocss|ant|0.50.6 vite|ant|0.2.5 wenyan-lang|ant|0.12.1 vscode-styled-components-cre-edition|Ant|1.3.0 canvas-dojo|Art|0.0.5 nestjs|ash|1.4.2 antd-snippets|ban|1.2.0 vscode-styled-jsx|bla|2.1.1 glsl-literal|boy|1.0.6 vscode-tailwindcss|bra|0.9.11 insert-unicode|bru|0.14.0 simple-react-snippets|bur|1.2.7 vscode-standardjs-snippets|cap|0.9.0 sass-snippets|car|0.0.2 language-stylus-plus|car|1.11.4 shader-factory|che|1.0.3 nest-server-tools|cho|0.3.5 node-snippets|chr|1.3.3 npm-intellisense|chr|1.4.4 path-intellisense|chr|2.8.4 cssrem|cip|3.1.0 glsl-canvas|cir|0.2.15 vscode-devtools-for-chrome|cod|0.0.7 react-styled-components|cou|0.0.1 language-postcss|cpy|1.1.0 canvas|cub|1.4.1 vscode-database-client2|cwe|6.3.1 react-template|dab|0.1.1 vscode-es-beautifier|dai|1.1.0 mui|dan|0.0.1 jsontotype|dan|0.0.3 styled-components-snippets|dan|0.4.0 vue-airbnb-vscode-snippets|dan|1.2.3 vue-template|das|0.0.1 vscode-markdownlint|Dav|0.49.0 vscode-eslint|dba|2.4.0 canvas|dev|0.0.4 vscode-styled-components|die|0.1.33 3se-tools|Dim|0.1.1 react-redux-react-router-snippets|dis|0.4.29 vscode-styled-jsx-languageserver|Div|1.3.1 vscode-styled-jsx-syntax|Div|1.3.1 githistory|don|0.6.20 asi-glsl|DrD|1.3.0 eslint-disable-snippets|drK|1.3.0 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|13.4.0 vscode-html-css|ecm|1.13.1 EditorConfig|Edi|0.16.4 vscode-great-icons|emm|2.1.92 threejs|En1|0.0.1 styled-components-snippets|Epi|1.0.3 react-typescript-cypress-testing-lib-snippets|Eri|0.3.0 prettier-vscode|esb|9.10.4 glslx-vscode|eva|0.1.9 styled-components-extractor|Fal|0.1.1 styled-snippets|fer|1.0.3 asterisk-config|ffl|1.0.2 glsl-language-support|fil|0.0.4 vscode-firefox-debug|fir|2.9.8 ant-design-mobile-snippets|fis|0.1.0 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 seito-openfile|Fr4|1.8.10 vscode-nesttypeorm|fuh|1.7.3 React-JS-Snippet|Gaj|3.0.54 React-JS-snnipets|Gaj|3.0.4 vscode-glsl|GeF|0.2.8 vscode-pull-request-github|Git|0.62.0 styled-component-generator|gme|0.0.3 webpack-snippets|gog|0.0.4 cloudcode|goo|1.21.3 json2ts|Gre|0.0.6 javascript-essentials|Gyd|0.1.1 typescript-essentials|Gyd|1.1.2 vscode-snippet-threejs|hao|0.0.3 canvatex|haw|0.0.1 debug-visualizer|hed|2.4.0 canvas-snippets|hol|0.3.2 vue-snippets|hol|1.0.4 iceworks-style-helper|ice|1.1.2 vscode-react-typescript|inf|1.3.1 path-autocomplete|ion|1.23.1 find-unused-exports|iul|1.20.0 glsl-snippets|j0h|0.0.1 open-file-from-path|jac|1.3.4 nginx-log-highlighter|jak|1.1.0 react-jest-vscode-snippets|jal|0.0.3 es6-string-glsl|Jed|0.0.1 webpack|jer|3.0.2 Lua-Nginx-Snippets|jie|0.0.4 styled-components-indicator|joa|1.0.1 vscode-styled-sort|joh|0.0.7 styled-components-snippets|jon|0.10.0 ts-debug|kak|0.0.6 v-snippets|kin|1.1.2 vscode-gutter-preview|kis|0.30.0 splunk-linter|kri|0.0.5 vscode-develop-tools|lea|1.2.0 vscode-fix-checksums|leh|1.1.0 full-react-snippets-add|lew|1.0.0 webpack-config|lia|0.0.1 ts-extension-pack|loi|0.3.0 react-style-classname-hint|lov|1.0.1 zz-cli-vscode-snippets|luo|1.2.1 vscode-styled-components-snippets|lXS|1.0.2 eslint-rules-zh-plugin|mag|0.2.1 vscode-shaderc|maj|0.4.0 json-to-ts|Mar|1.7.5 webgl-shader-viewer|mat|0.10.3 ts-error-translator|mat|0.8.0 react-redux-helper|May|0.0.1 template-string-converter|meg|0.6.0 vscode-styled-components|mf|0.2.2 vscode-language-babel|mgm|0.0.38 git-graph|mhu|1.30.0 Angular-BeastCode|Mik|10.0.3 import-sorter|mik|3.3.1 formate|Mik|1.2.1 dotenv|mik|1.0.1 scss-snippet|Mil|0.0.2 vue-volar-extention-pack|Mis|1.1.8 vscode-extension-auto-import|mop|1.3.3 vscode-glsl-linter|mrj|1.2.0 vscode-json5|mrm|1.0.0 vscode-scss|mrm|0.10.0 vscode-azureappservice|ms-|0.24.8 vscode-azureresourcegroups|ms-|0.6.2 vscode-docker|ms-|1.24.0 vscode-language-pack-zh-hans|MS-|1.77.2023032909 vscode-edge-devtools|ms-|2.1.1 vscode-kubernetes-tools|ms-|1.3.11 remote-containers|ms-|0.288.0 remote-ssh|ms-|0.98.0 remote-ssh-edit|ms-|0.84.0 azure-account|ms-|0.11.3 cmake-tools|ms-|1.13.45 cpptools|ms-|1.14.5 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.9.11 js-debug-nightly|ms-|2023.3.2917 powershell|ms-|2023.3.3 remote-explorer|ms-|0.2.0 vscode-typescript-next|ms-|5.1.20230329 vscode-react-native|msj|1.10.2 vscode-stylesheet-beautify|n23|0.0.3 es7-react-snippets|naq|1.0.1 vscode-react-router-snippets|Nic|6.0.0 vscode-plugin-webgl-syntax|nie|0.0.2 canvas-api-snippets|nik|0.3.3 vscode-extension-auto-import|Nuc|1.4.3 vetur|oct|0.37.3 fix-json|oli|0.1.2 vscode-jest|Ort|5.2.3 vscode-html-scss|P-d|0.0.42 vue-config-generator|pen|0.0.2 material-icon-theme|PKi|4.25.0 tsimporter|pmn|2.0.1 fe-tools|poe|1.0.5 vscode-css-peek|pra|4.2.0 promise-snippets|pro|0.3.2 nextjs-snippets|Pul|1.0.1 vue-config-helper|qi3|0.0.1 quicktype|qui|12.0.46 webgl-glsl-editor|rac|1.3.4 nginx-formatter|ray|0.0.13 typescript-hero|rbb|3.0.0 vscode-xml|red|0.24.0 vscode-yaml|red|1.12.2 echarts-enhanced-completion|ren|1.6.3 f12-open-file|rex|0.3.2 html-to-jsx|ria|0.0.1 postcss|ric|2.0.0 LiveServer|rit|5.7.9 vscode-styled-components|ro|0.1.27 vscode-essentials-snippets|rob|2.0.0 es7-react-js-snippets|rod|1.9.3 any-rule|rus|0.3.18 rust-analyzer-cn|rus|0.5.3 vs-code-prettier-eslint|rve|5.1.0 salesforce-vscode-slds|sal|1.4.8 vscode-styled-jsx-stylus|sam|1.0.4 preact-preact-router-snippets|sar|0.1.2 vue-vscode-snippets|sdr|3.1.1 vstack|seo|1.0.7 vscode-nginx|sha|0.6.0 markdown-preview-enhanced|shd|0.6.8 vscode-scss-formatter|sib|2.4.5 svg-preview|Sim|2.8.3 js-jsx-snippets|sky|11.0.1 shader|sle|1.1.5 vscode-3dviewer|sle|0.2.2 express-mongo-snippets|snl|0.0.2 sonarlint-vscode|Son|3.16.0 element-ui-snippets|SS|0.7.2 vscode-standard|sta|2.1.3 autoimport|ste|1.5.4 code-spell-checker|str|2.20.3 move-ts|str|1.12.0 vscode-mc-shader|Str|0.9.9 vscode-styled-components|sty|1.7.5 vscode-stylelint|sty|1.2.4 stylister3d|Sty|0.0.3 style-helper|sup|1.7.0 vscode-echarts-extension|sus|0.2.3 sass-indented|syl|1.8.26 tabnine-vscode|Tab|3.6.43 vscode-3d-preview|tat|0.2.1 open-in-browser|tec|2.0.0 vscode-nginx-format|tec|0.0.6 vscode-nginxfmt|THL|0.1.0 ReactSnippetsStandard|Tim|1.1.0 react-redux-es6-snippets|tim|2.1.0 es6-string-html|Tob|2.12.1 vscode-status-bar-format-toggle|tom|3.1.1 selectline-statusbar|tom|0.0.2 vscode-npm-scripts|tra|0.2.1 cmake|twx|0.0.17 jsontotype|tyw|0.1.1 vscode-react-snippets|ugr|2.0.1 vscode-jsx-style|upp|1.0.1 vscode-jsx-style-languageserver|upp|1.0.0 vscode-styled-components|vas|0.0.32 highlight-matching-tag|vin|0.11.0 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 volar|Vue|1.2.0 vscode-typescript-vue-plugin|Vue|1.2.0 quokka-vscode|Wal|1.0.529 WebTemplateStudio-dev-nightly|WAS|0.7.2117301 vscode-nginx|wil|0.7.2 vscode-import-cost|wix|3.3.0 file-jump|won|0.0.8 es7-react-js-snippets|woo|2.5.1 vue|Wsc|1.0.26 autocomplete-english-word|wus|0.1.7 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 super-translate|xue|1.0.12 css-var-hint|yan|0.2.16 five-server|yan|0.1.12 template|yon|1.3.0 dom-code-snippets|yon|1.0.2 vscode-preview-server|yui|1.3.0 json|Zai|2.0.2 vetur-extended|zar|0.0.25 file-jump-ext|zhi|0.0.1 propertylist|zho|0.0.2 vue-component|zhu|1.1.0 vitest-explorer|Zix|0.2.39 vue|znc|0.12.0 vscode-proto3|zxh|0.5.5 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vscaat:30438848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 vsccsb:30677849 functionswalk:30687959 pythonms35:30701012 ```
VSCodeTriageBot commented 1 year ago

感谢您创建此问题!

然而,由于您没有使用英语,我们很难进行处理。如果可能,请您将此问题描述修改为英文。请您直接编辑此问题,不要提交回复或新问题。

请注意,机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言,所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。

如果您无法做到,没有关系。此问题已经被标记为需要翻译,等待社区成员志愿进行翻译。


Thanks for creating this issue!

Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.

In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.

Otherwise, we have marked this as needing translation and a community member may be able to help out.

hediet commented 1 year ago

I found that I couldn't use Enter to wrap lines directly,

Can you describe how you were using Enter? Do you mean to add a new line character? That should still work.

ren-142326 commented 1 year ago

In my current project, using Enter directly does not work. I cannot insert a new line under the current line. I can only use ctrl + Enter or shift + enter to insert a new line.

------------------ 原始邮件 ------------------ 发件人: "microsoft/vscode" @.>; 发送时间: 2023年4月3日(星期一) 晚上8:44 @.>; @.**@.>; 主题: Re: [microsoft/vscode] 换行 (Issue #178787)

I found that I couldn't use Enter to wrap lines directly,

Can you describe how you were using Enter? Do you mean to add a new line character? That should still work.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hediet commented 1 year ago

Can you try with VS Code insiders and/or empty settings?

tamuratak commented 1 year ago

Duplicate of https://github.com/microsoft/vscode/issues/178782#issuecomment-1492651359

Disable diegolincoln.vscode-styled-components

ulugbekna commented 1 year ago

Thanks @tamuratak !

Closing as duplicate of https://github.com/microsoft/vscode/issues/178782