Code Monkey home page Code Monkey logo

Comments (12)

amir1376irani avatar amir1376irani commented on August 16, 2024 1

I'm using an extension named Better Comments which install counts are about a million user.
it makes comments colorful. For example if you type //! my comment as a new comment line, it gets red.
Unfortunately CodeSnap shows all of those comments in default green color, not what is really shown on screen.

Better Comments link for vs-code : https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments

from codesnap.

kufii avatar kufii commented on August 16, 2024

Thanks for the report,

What theme are you using? is this the default c++ language definition?

I thought it was default theme, but when I select the default theme, the colors match your generated image even in my editor.

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

I'm using the default dark theme on Windows 10. Yes, I didn't use any custom definition (I don't even know how to declare it yet). I also installed Polacode after this weird bug, seems to be affected as well. Did you try using my code?

After trying today, simple codes are now affected by this bug as well:
Screenshot_2

My settings.json file doesn't even have any modification related to theme: https://pastebin.com/DKeKVzhr

I'm using MinGW C++ compiler with C/C++ extensions installed if that helps, I will try cleaning my extensions folder or even deleting the entire data folder to see if the bug still exist.

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

Issue still persist even after resetting my VS Code data (I deleted the user-data folder and extensions\adpyke.codesnap-1.0.15 folder manually).

My list of installed extensions:
Screenshot_3

from codesnap.

kufii avatar kufii commented on August 16, 2024

What's interesting is that when using the default vs code settings my token colors are slightly different. Even when using your cpp file. Variables are white not blue like yours, and look the same in CodeSnap. I'll investigate further when I have some free time

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

Maybe you don't have any C++ compiler installed or don't have C/C++ extensions installed?

from codesnap.

kufii avatar kufii commented on August 16, 2024

What OS are you on? Looks like Windows 10 but just want to be sure

from codesnap.

kufii avatar kufii commented on August 16, 2024

I don't have the c++ compiler but I do have the extensions. I'll install the compiler when I'm at my pc later

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

Yes, Windows 10 but LTSC edition. Doesn't make any difference to Windows 10 Pro/Home in this case.

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

In case you don't want to install C++ compiler (because you don't need it anyway), you can just use Nuwen's MinGW distro.

Extract it somewhere like C:\MinGW. Open Command Prompt, type set "PATH=%PATH%;C:\MinGW\bin" (where gcc.exe exist) and then type YourVSCodePath\Code.exe to run VS Code.

MinGW will now be recognized by VS Code without the need of installing it. Just delete C:\MinGW later. You may still need to configure the C/C++ extensions, though.

from codesnap.

kufii avatar kufii commented on August 16, 2024

I'm now successfully reproducing the issue.

The colors are being changed by C_Cpp.enhancedColorization. Unfortunately I have not yet found a way to get colors set by extensions, only ones set by themes.

from codesnap.

AndhikaWB avatar AndhikaWB commented on August 16, 2024

I'm fine with it actually, no need to push yourself. I'll try to make a request (or search for the same issue) on Polacode repo and see if it can get fixed, or maybe on VS Code repo itself.

from codesnap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.