dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.08k stars 4.04k forks source link

The code I'm typing moves to a comment line without my permission #72875

Open vsfeedback opened 7 months ago

vsfeedback commented 7 months ago

This issue has been moved from a ticket on Developer Community.


image

If you press the "[" key in the state shown above, the state changes to the state shown below. I would like the code I typed to continue coding without going to a comment line. Is this behavior a bug? If it's not a bug, what are the options to disable this behavior?

image

Below is the version information of Visual Studio that I am using.

Microsoft Visual Studio Professional 2022 Version 17.6.4 VisualStudio.17.Release/17.6.4+33815.320 Microsoft .NET Framework Version 4.8.09037

インストールされているバージョン:Professional

ASP.NET and Web Tools 17.6.326.62524 ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.6.326.62524 Azure App Service Tools v3.0.0

C# ツール 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a IDE で使用する C# コンポーネント。プロジェクトの種類や設定に応じて、異なるバージョンのコンパイラを使用できます。

CodeMaid 12.0 CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Common Azure Tools 1.10 Azure Mobile Services および Microsoft Azure Tools で使用する共通サービスを提供します。

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet パッケージ マネージャー 6.6.0 Visual Studio 内の NuGet パッケージ マネージャー。NuGet の詳細については、https://docs.nuget.org/ にアクセスしてください

Office Developer Tools for Visual Studio 17.6.33520.00 Microsoft Office Developer Tools for Visual Studio

Razor (ASP.NET Core) 17.6.0.2327201+a6a61fdfa748eaa65aab53dab583276e26af4a3e ASP.NET Core Razor の言語サービスを提供します。

SQL Server Data Tools 17.6.13.0 Microsoft SQL Server Data Tools

TypeScript Tools 17.0.20329.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic ツール 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a IDE で使用する Visual Basic コンポーネント。プロジェクトの種類や設定に応じて、異なるバージョンのコンパイラを使用できます。

Visual F# Tools 17.6.0-beta.23174.5+0207bea1afae48d9351ac26fb51afc8260de0a97 Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 Visual Studio 向けの AI 支援付き開発。

Workflow Manager Tools 1.0 1.0 This package contains the necessary Visual Studio integration components for Workflow Manager.


Original Comments

Feedback Bot on 4/1/2024, 05:39 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 4/1/2024, 05:43 PM:

(private comment, text removed)

堀江 和弘 on 4/1/2024, 06:44 PM:

(private comment, text removed)

堀江 和弘 on 4/1/2024, 09:41 PM:

(private comment, text removed)

堀江 和弘 on 4/1/2024, 10:51 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 4/3/2024, 00:29 AM:

(private comment, text removed)


Original Solutions

(no solutions)

sharwell commented 7 months ago

Internal triage found that this issue reproduces with the following settings:

image