The LineEnding setting in .clang-format has no effect within VS Code

オープン
#12,352 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, typescript
領域
tooling

調査の方向性

LF の改行を使用する .cpp ファイルと、LineEnding: CRLF を含む .clang-format ファイルを使って、VS Code で問題を再現します。まず、C/C++ extension がどのようにフォーマットを呼び出すかを追跡し、その後、フォーマットによってドキュメントの改行が期待どおり CRLF に変換されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug Feature: Code Formatting has workaround Language Service
Environment
  • OS and Version: Ubuntu 22.04 LTS
  • VS Code Version: 1.89
  • C/C++ Extension Version: v1.20.5
Bug Summary and Steps to Reproduce

Create a .cpp file with LF line endings.
Configure a .clang-format file with

LineEnding: CRLF

The format the document.

Expected: The line endings should have been converted to CRLF.

Actual: The line endings stay at LF.

Configuration and Logs
not necessary
Other Extensions

No response

Additional context

No response

主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-cpptools のほかの issue

microsoft/vscode-cpptools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。