Search code examples
javascripteditorwhitespacegoogle-cloud-shell

I'm having trouble with whitespace being colored in the GCP Cloud Shell Editor


I was coding JavaScript in a cloud shell editor and suddenly the white space was colored and it was very hard to see. How can I get rid of the whitespace color?

enter image description here


Solution

  • The appearance of the screenshot you shared is what you see when you are in Cloud Shell Editor and you do Ctrl + F and then find occurrences of the space character.

    The point is, when I reproduced this, I closed the window where I typed the text to be highlighted, and the highlighting disappears.

    However, if you click in Search (the magnifying glass icon), and you find occurrences of the space character, the spaces are also highlighted in the code you are editing. Then when you click on the magnifying glass icon again, you will have the same appearance as in the screenshot, keeping the spaces highlighted, and not being able to know clearly why this is happening.