In one of my files, everything was working fine. Things were being color-coded and auto-intending perfectly for me. When I started a new file to work on some other code, I noticed that the text was black and nothing was being indented for me. I tried asking google a whole bunch of questions like, "how to turn on auto-indent for emacs" and "how to change the theme color." I tried following suggestions online, but none seem to work. Is there a way I could reset my settings to default?
When creating a name for the file I forgot to put .cpp at the end. Sorry for the waste of time and Thank you to everyone who tried to help me.
Related
I'm very new to emacs and know next to nothing.
I would like to better use EIN but one thing which bugs me is that whenever I open a notebook, the modeline displays the entire path to the file which I've opened, followed by the filename.
enter image description here
This is way too long so as to make EIN very difficult to use, especially if the frame is split into 2 windows. I've tried setting all sorts of things in my init.el with the assistance of chatGPT but none of it works. Any suggestions would be greatly appreciated
I've tried setting all sorts of things in my init.el with the assistance of chatGPT but none of it works.
I am having a weird bug on vscode for which the auto-completion suggestion shows twice and on the first auto-completion, the cursor is not going to the end of the word. I tried to check and play around with autocompletion settings but can't manage to solve this.
One thing I noticed is that if I open the suggestion menu manually and then select it, it works, this happens with the quick suggestions menu.
See the video below for clarity. This is a really annoying issue, can't find anything online about it.
See video here
Possible solutions:
Update your vscode if available.
If that only happens when writing CSS code, maybe that's an extension related issue.
See if that works :)
In VSCode when I indent some commands or variables correctly, they got faded. Can anyone tell me why this happens (is it really connected with indentation?) and how I can get rid of this annoying issue?
Faded lines in the case of correct indentation but not always!
In the wrong indentation, everything seems correct
Output which is correct
I have opened an issue in Pylance and here is the discussion, cause, and solution:
https://github.com/microsoft/pylance-release/issues/3240
(Unreasonable faded lines #3240)
another useful link could be:
https://github.com/microsoft/pylance-release/issues/3195
Actually I don't know when it existed, but recently after changing some themes, the editing area has a strange light color block.
It's neither a blank string nor a blank line break, it 'jumps' with the area you're editing. This is quite annoying and I have not been able to find a real answer to this problem.
In some cases, changing the theme occasionally helps, but it mostly doesn't work, and I don't think that's a good idea because those light blocks are always stubbornly present, can anyone help?
P.S I hope I can express the problem precisely enough, I'm attaching a screenshot to point out the so-called 'light blocks'.
Thanks for any help!
After some time of research, I have to think that this seems to be the only solution for now. Originally I used developer tools in an attempt to change the CSS, but decided that was an illegal hacking solution, and I thought the app could be overwritten if I updated it, so I abandoned that idea.
Now I found a possible solution.
Go into settings, search for: #id:workbench.colorCustomizations workbench
Note: You must choose to also modify on User, otherwise it will only work on the current window workspace.
After entering setting.json, look for Workbench: Color Customizations and add editor.background to workbench.colorCustomizations, example:
"workbench.colorCustomizations": {
"editor.background": "#19485964"
},
The most important point is that transparency must be set! As long as editor.background is set to a certain level of transparency, then the "strange light color blocks" will disappear.
Although I'm not sure if this is a real solution, it can solve the problem to some extent, and no failure has been found yet, so I assume this is "barely a solution" for now.
If there is a better answer, I would welcome any additional information, thank you.
Can anyone help me figure out why code colors seems to be off? Doesnt matter what theme I am using, my element tags are always the same color as the text that might be in it.
I tried a reinstall and that didnt change anything.
Thank you
example of my issue (in the nav)
Not sure what the cause is but I fixed it by following the instructions on this page. Seems to have normalized everything by doing a complete reinstall
Complete uninstall of vscode