Incorrect Colors for C++ Files in Visual Studio 2022

オープン
#686 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

まず、Visual Studio 2022 Community 17.1、OneDark Pro バージョン 1.2.0、および C++ ファイルを使って問題を再現し、その後、構文の色を Visual Studio Code のスクリーンショットと比較します。Theme Converter の出力とテーマの Visual Studio 定義を調査します。C++ の関数と変数が期待される色を使用し、JavaScript や C# の外観を変更していなければ完了です。

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

説明

bug

In Visual Studio 2022, the theme does not work correctly for C++ files. The majority of keywords take on the coloring provided by the default Visual Studio dark theme. This seems to only be a problem with C++ files, as JavaScript and C# files look as expected. It could be a problem with the Theme Converter tool and how the theme was originally converted, since certain keywords get the proper highlighting while others don't.

C++ File in Visual Studio 2022
image
Notice how functions are light yellow instead of blue and variables are light blue instead of red.

C++ File in Visual Studio Code (this is how I expect the Visual Studio 2022 version to look)
image
Correct function and variable colors.

Steps to reproduce the behavior:

  1. Download Visual Studio 2022 Community 17.1
  2. Install the official OneDark Pro theme from the Visual Studio Marketplace.
  3. Change your current theme to the OneDark Pro theme and open up a C++ file.

System Info:

  • OS: Windows 10
  • Version: Visual Studio 2022 Community 17.1
  • Theme version: 1.2.0
主要言語
TypeScript
スター
1.8k
フォーク
307
平均マージ
1時間 53分
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Binaryify/OneDark-Pro のほかの issue

Binaryify/OneDark-Pro の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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