wmjordan / Codist

A visual studio extension which enhances syntax highlighting, quick info (tooltip), navigation bar, scrollbar, display quality, and brings smart tool bar with code refactoring to code editor.
https://marketplace.visualstudio.com/items?itemName=wmj.Codist
GNU General Public License v3.0
315 stars 29 forks source link

Support importing/copying VS color theme to Codist #114

Open laicasaane opened 4 years ago

laicasaane commented 4 years ago

I mainly use the default syntax highlighting function of VS, but I also want to use Codist's function sometimes. However it is very troublesome to re-config Codist theme to follow VS theme. If there is a way to import VS theme into Codist, it would be great!

wmjordan commented 4 years ago

It is interesting and possible to do so. However, I encountered a problem on getting colors in synchronization with the theme. (See #14) Once I figure that out, it is possible to implement this.

The latest beta has utilizes existing VS syntax highlight settings. You can press the "Reset" button in the Syntax Highlight configuration page of Codist, and it will restore the syntax highlight settings from VS (there is a bug, if things don't go well, restart VS). Afterward, you can tweak syntax highlight styles from there.

laicasaane commented 4 years ago

Yes I've experienced a "not responding" bug when use Reset.

wmjordan commented 4 years ago

That sucks. Could you try that again?

laicasaane commented 4 years ago

When I restart VS after experiencing that bug, I see Codist has copied VS theme already.

wmjordan commented 4 years ago

The freezing after your pressing the "Reset" button may have something to do with #42. Could you reproduce the problem and observe whether the CPU usage is high when this issue reoccurs?

I am planning to rewrite the syntax highlight configuration pages. Hopefully those issues could be solved after that.

laicasaane commented 4 years ago

With the latest beta 5123, the issue didn't occur anymore. However, there is just one minor issue: Codist extensions method color isn't copied from "User Members - Extensions Methods", but from "User Members - Methods".

wmjordan commented 4 years ago

I tried to fix that. But it was unexpectedly complicated :( if I were to keep Codist compatible with VS 2017.

wmjordan commented 1 month ago

The Codist 8 (#334) supports exporting styles built in VS theme now. Press "Shift" key before exporting your current syntax highlight themes in the Codist Syntax Highlight Customization window.

laicasaane commented 1 month ago

@wmjordan Pressing "Shift" seems to be an elusive UX behaviour even with a tooltip.

wmjordan commented 1 month ago

I think there are not so many people need exporting all styles. Neither do I want to do that, actually.

If many people request this, I will turn it to a separated button.