dotnet / dotnet/vscode-csharp

Cursor is placed at the end of /// documentation comment template

Open
#5,498 0 comments 0 reactions 0 assignees View on GitHub
OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

## Issue Description ##

When adding a documentation comment to a method, the input cursor is moved to the end of the comment template. In Visual Studio, it's moved to where I'm supposed to start typing.

## Steps to Reproduce ##

1. Define a method.
2. Before that, type `///`

## Expected Behavior ##

The cursor is after the `/// ` of the second line, in the `` element.

## Actual Behavior ##

The cursor is after the `` element.

## Logs ##

### OmniSharp log ###
Not there

### C# log ###
Not there

## Environment information ##

**VSCode version**: 1.74.1
**C# Extension**: 1.25.2

Dotnet Information
.NET SDK:
Version: 7.0.100
Commit: e12b7af219

Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100\

Host:
Version: 7.0.0
Architecture: x64
Commit: d099f075e4

.NET SDKs installed:
6.0.400 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions

|Extension|Author|Version|
|---|---|---|
|better-pageup-pagedown|russelldavis|0.0.1|
|cpptools|ms-vscode|1.13.8|
|csharp|ms-dotnettools|1.25.2|
|cursorCharCode|zeithaste|0.2.2|
|ecdc|mitchdenny|1.8.0|
|isort|ms-python|2022.8.0|
|jinjahtml|samuelcolvin|0.19.0|
|jupyter|ms-toolsai|2022.11.1003412109|
|jupyter-keymap|ms-toolsai|1.0.0|
|jupyter-renderers|ms-toolsai|1.0.12|
|platformio-ide|platformio|2.5.5|
|python|ms-python|2022.20.1|
|remote-explorer|ms-vscode|0.0.3|
|remote-ssh|ms-vscode-remote|0.94.0|
|remote-ssh-edit|ms-vscode-remote|0.84.0|
|trailing-spaces|shardulm94|0.4.1|
|vscode-dotnet-runtime|ms-dotnettools|1.6.0|
|vscode-jupyter-cell-tags|ms-toolsai|0.1.6|
|vscode-jupyter-slideshow|ms-toolsai|0.1.5|
|vscode-language-pack-de|MS-CEINTL|1.74.12140926|
|vscode-nuget-gallery|patcx|0.0.24|
|vscode-pylance|ms-python|2022.12.20|
|vscode-solution-explorer|fernandoescolar|0.7.4|
|vscode-todo-highlight|jgclark|2.0.4|
|ygoe-theme|Yves Goergen|1.0.0|;

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.