ryu1kn / vscode-text-marker

Visual Studio Code Extension. Select text in your code and mark all matches. The marking colour is configurable
https://marketplace.visualstudio.com/items?itemName=ryu1kn.text-marker
MIT License
86 stars 17 forks source link

Save file and transfer highlights #58

Open sleyden-nuance opened 3 years ago

sleyden-nuance commented 3 years ago

Hello,

I have a .json file in VSCode that I have highlighted appropriately and saved. When I give this file to my colleague and he installs the plugin - he can not see any of the highlights I have added - why is this? Is there anyway to save highlights to a file to be able to have your colleague see those highlights? Please let me know.

Thanks,

Scott

ryu1kn commented 3 years ago

Highlights are saved as textmarker.savedHighlights either in your user settings or workspace settings depending on your choice. Have you given that bit of the setting to your colleague and still he cannot see the highlight restored?

sleyden-nuance commented 3 years ago

Yes I was able to save the workspace settings for "textmarker.savedHighlights" and provide those settings to my colleagues and they were able to see the highlights. So each time I want to highlight selected code with a specific color and share with a colleague to perhaps change the highlight color or add more selected text highlights we must just share our workspace settings? Is there anyway to just provide highlights with file rather than have to give both the file and "settings.json file? Just seems like a lot of work to accomplish what I thought was a simple task.