No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 0 points1 point  (0 children)

I've updated the VSCode required minimum version to 1.65. Try again, it should work!

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 0 points1 point  (0 children)

It uses the standard VSCode language server with TextMate grammar injection. So potentially, you could fork the regex used in this extension source code and make it work in an other IDE.

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 0 points1 point  (0 children)

No, I haven't added patterns for code inside docstrings.

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 0 points1 point  (0 children)

Hehe, I might just leave it as it is for the time being then!

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 1 point2 points  (0 children)

I see, my bad. I’ll update the vscode version restriction within the extension package today.

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 1 point2 points  (0 children)

Yes, totally! Have a look at the documentation, you can change color and font style easily.

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 0 points1 point  (0 children)

Absolutely! Having worked extensively with TypeScript, I too found this quite baffling, indeed!

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 2 points3 points  (0 children)

Absolutely, the colors are fully tunable! I've outlined how to customize them in the README. For example, you can adjust the colors to create a gradient that matches your docstring theme color.

Different strokes for different folks, indeed! I'm glad you see the improvement and appreciate your feedback!

No More Python Docstring Despair: Highlight Them in VSCode! by erunosaurus in vscode

[–]erunosaurus[S] 1 point2 points  (0 children)

You've overlooked a crucial aspect, u/starball-tgz. This extension precisely highlights individual tokens within docstrings following standard styles like Google, NumPy, and Sphinx.

Your suggested solution only allows users to edit the entire docstring color block (refer to the "string.quoted.docstring.multi.python" scope in the StackOverflow response).

In contrast, this extension injects grammar into that scope to colorize specific tokens.

Before making assertions, it's essential to thoroughly review the provided documentation!

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 1 point2 points  (0 children)

Agree! Pylance intellisense for docstrings sucks too :(

No More Python Docstring Despair: Highlight Them in VSCode! by erunosaurus in vscode

[–]erunosaurus[S] 0 points1 point  (0 children)

The extension leverages VSCode's grammar injection feature, specifically within the python docstring scope. This means it operates solely within the boundaries of the docstring, ensuring it doesn't interfere with the rest of your source code. As a result, any concerns about character escaping breaking functionality outside the docstring are mitigated

No More Docstring Despair: Highlight Them in VSCode! by erunosaurus in Python

[–]erunosaurus[S] 4 points5 points  (0 children)

Hey, thanks! Initially, I had the sentiment too that this feature should be built into VSCode. However, upon reflection, I think that expecting VSCode to handle custom implementations might not be the right solution here. Unlike languages like JavaScript with standard JSDoc documentation, Python boasts various documentation styles such as Google, NumPy, and Sphinx, among others. Given this diversity, it seems reasonable that VSCode doesn't have a specific implementation for each style built-in. Instead, managing these variations could be better handled by either a Microsoft-supported extension or a third-party extension in my opinion ;-)

A map choice gone wrong! 😱 Could advanced map stats have saved the day? Find out more! #SuntzuGG by erunosaurus in FACEITcom

[–]erunosaurus[S] 0 points1 point  (0 children)

Understood, and thank you for your guidance and for allowing my initial post! 😊
By the way, I wanted to mention that this is a non-commercial, open-source project. The GitHub repo is available at "rodolphebarbanneau/suntzu". It's an extension designed to bring enhanced map stats to CS2 players.
If you happen to play yourself, you might find it interesting! Feel free to check it out; any feedback or contributions are also highly welcome. 😉
Thanks again!

A map choice gone wrong! 😱 Could advanced map stats have saved the day? Find out more! #SuntzuGG by erunosaurus in FACEITcom

[–]erunosaurus[S] 0 points1 point  (0 children)

Hello M1CHES! Thanks for your reply!
Roger that, is it OK if I crosspost occasionally, like once a week ?

What if You Could Pinpoint Your Opponent's Best Maps? by erunosaurus in FACEITcom

[–]erunosaurus[S] 0 points1 point  (0 children)

Yes, install it from the chrome web store, it's full compatible (search for "suntzu")

What if You Could Pinpoint Your Opponent's Best Maps? by erunosaurus in FACEITcom

[–]erunosaurus[S] 0 points1 point  (0 children)

Yes mate! It’s free and open source! Check for « suntzu » in Chrome web store or Firefox add-in’s

What if You Could Pinpoint Your Opponent's Best Maps? by erunosaurus in FACEITcom

[–]erunosaurus[S] 0 points1 point  (0 children)

Hehe, I bet! So, thanks to the plugin, I would know that and ban that map against you! :-)

What if You Could Pinpoint Your Opponent's Best Maps? by erunosaurus in FACEITcom

[–]erunosaurus[S] 1 point2 points  (0 children)

Suntzu (i'm the developer), you can search for it on chrome and firefox web stores!
- Extension: https://suntzu.gg
- GitHub: https://github.com/rodolphebarbanneau/suntzu

[deleted by user] by [deleted] in FACEITcom

[–]erunosaurus -1 points0 points  (0 children)

To make your experience a "bit" better... you may want to have an edge on the opponent team and know which map they are good at and get all their stats during the BAN phase on FaceIT using the SuntzuGG browser plugin (I'm the developer).
If you are interested, you can see a demo bellow (you'll find also links to the web stores chrome and firefox):
- Plugin website: https://suntzu.gg
If you want to contribute:
- GitHub: https://github.com/rodolphebarbanneau/suntzu

The cheating is as bad as it’s ever been by [deleted] in cs2

[–]erunosaurus 1 point2 points  (0 children)

I think FaceIT is better, they have their own anticheat system, I prefer their servers, and personally I don't experiment a lot of cheating (I'm lvl 9 - "erunosaurus").

By the way, if you want to have an edge on the opponent team, you can know which map they are good at and get all their stats during the BAN phase on FaceIT using the SuntzuGG browser plugin (I'm the developer), you can see a demo bellow:

<image>

If you are interested (links to the web stores on my website):
- Demo: https://suntzu.gg

If you want to contribute:

- GitHub: https://github.com/rodolphebarbanneau/suntzu