In Studio Visual Code I'm using SASS and when working on my .scss file if I add something like:
grid-template-columns: repeat(3, 1fr);
for a section tag and save - the corresponding css file is changed to the following:
-ms-grid-columns: (1fr)[3];
grid-template-columns: repeat(3, 1fr);
I would like to know why it gets changed with the extra line of code inserted before what I typed.
Looking elsewhere from examples it seems on css alone my syntax is correct, otherwise I would have assumed Visual Studio is trying to do some code correction. I have a hunch but don't know what it's about that the prefix -ms has something to do about it and is the clue I can't figure out why or how to stop doing this.
The odd thing is if I type what I want directly in the css file it gets displayed with no errors in VS,
but VS's own code addition to my css file shows up as errors - like it didn't change it properly, whatever it's trying to do.
Anyone able to shine some light on this is appreciated. Thanks.
Related
I don't understand the reason behind this. Can it be related to PHP extensions?
Since I created the project I see my .env file's content looks like that. I cannot modify anything in it.
What should I do to fix this issue?
I fixed the issue.
In VS Code,I just typed “Toggle auto-cloaking” at the top and now all the black lines are gone.
Alright so, I'm new to coding and I got VS Code and for some reason, all my text is mostly the same color. At first when I open VS Code it looks like this:
But, as soon as I type something it looks like this:
It's kind of hard to see different variables or methods when it's all the same color. Any idea why it looks like that? Also, I'm not sure if it helps but I'm using unity as well.
It looks like that VS Code has problems communicating with Unity. Because all the Unity stuff is blue, the rest is colored as normal.
I would check if VS Code is set as editor. You can see it here:
Edit -> Preferences -> External Tools -> External Script Editor
Make sure VS Code is set there.
Tooltips sometimes are very useful in VS code a specially when they hint what is the class or where variable is defined.
Is it possible somehow by clicking on hint to go to the line and file to which hint is applying to?
I tried with ctrl+click, shift+click and others... None of them works.
I am trying to use Visual studio code to edit my Matlab .m file. After installation and setting of Matlab extension, I can write my m file now. The variables color markers are correct. But I found a problem about the "hints" or "prompts" of my code. I don't know the exact term of it. I just describe it in an example.
When I write some problematic code in Matlab editor, there would be a wavy red line under there. When my mouse cursor stay there, a message pops up, like invalid syntax at the end of the line. In the Vscode editor, there is wavy line, too. But it can't show the content of the prompts but only some rhombus symbols. There is a button Peek Problem under it. Sorry for lacking pictures here. I am trying to describe the problem in details.
I may need to change the settings but don't know how. Do I need more extensions? Any suggestions would be appreciate.
Following prompt of #nekomatic,
add "matlab.linterEncoding" : "gb2312" to the setting.json.
I'm using FlashDevelop 4.6.1.30 in Windows, using it with HaxeFlixel.
The autocomplete suggestions appear when editing code - this is wanted, it is good.
They also appear when editing text files though - this is not wanted, it is not good.
Specifically, if I create a new text file in flash develop (so the file is called "readme.txt" or something), after typing a few words, FD tries to "guess" what I'm typing and pops up the suggestions list. This, of course, makes no sense when trying to type out things that aren't code.
Yes, I've seen this Flashdevelop - Disable autocomplete for txt files and no, it doesn't work - even after a restart.
Here is a screenshot showing it not working...
Can confirm, setting that option doesn't prevent completion in .txt files. Consider opening an issue on the FlashDevelop repository.
Looks like a bug.
For now you can simply disable the BasicCompletion plugin (check Disable and restart FlashDevelop).