Giter Club home page Giter Club logo

Comments (4)

jdinhify avatar jdinhify commented on May 18, 2024

Thanks @Paiusco

I'm not entirely sure what you're proposing. Could you please have a side-by-side comparison photo or something?

We can scope the highlighting to specific language, so we can introduce this change for C++ only if you think that'd help C++ dev.

from vscode-theme-gruvbox.

Paiusco avatar Paiusco commented on May 18, 2024

I actually think that would help any OO language

Take a look into this example:

class A {
public:
   A() {};

   bool foo(int parameter_int);
      
private:
   int internal_int;
}

bool
A::foo(int external_int)
{
   return external_int == internal_int; // Tag: Here!!! 
}

int main() 
{
   A a;
   a.foo(2);
}

Here!!! : How does one know, by gruvbox colours which int is a class member and which isn't??
My project nowadays uses Hungarian notation for member variables (m_), e.g. in my example internal_int would necessarily become m_internal_int. Which IMHO seems good enough, however, still error prone. Meaning that every new dev has to know that and check every review for it.

In Monokai, as previously mentioned by me, they even use different colours for methods parameters (colour + italic) and local variables.

from vscode-theme-gruvbox.

jdinhify avatar jdinhify commented on May 18, 2024

Thanks @Paiusco , I'm happy to accept what would help. Do you have time to work on a PR ? It'd be helpful to include some screenshots before & after the change.

If you think you can target other languages, that's fine, just please make sure that the changes won't completely modify the views. There's a few code examples in this repo, feel free to use to test & add more if needed.

from vscode-theme-gruvbox.

Paiusco avatar Paiusco commented on May 18, 2024

Sorry for the long delay on this.
I've started to play around those issues, as I don't have a good knowledge on JS, it took me a while to realise that it's not a matter of changing colours.

So here is a Monokai scope of a class member variable:
monokai-scopes

and gruvbox:
gruvbox-scopes

What's exactly missing there for gruvbox be able to see it as it should? So if anyone can help I'd be happy to open a PR and also add an specific '.cpp' test file (that's compile-able) :)

from vscode-theme-gruvbox.

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.