In one instant my React/Redux snippets broke in .jsx files screenshot.
Everything was working before.
In .js everything is working correctly
screenshot.
Reading the forums, I came across a similar problem, the solution to which was to put a minus prefix before starting to enter the snippet and it worked
screenshot.
The problem is that after opening the snippet, the minus remains in front of it screenshot.
Please help me expand the snippet without the minus prefix in .jsx files.
Update:
When i write only one character it's still work too screenshot.
As soon as i enter the second character, all snippets disappear and in select menu they are missing too screenshot.
Related
Is there a way to do so? I find a lot of my time is taken up correcting indentation formatting in VSCode after pasting, because it seems to sometimes take the source indenting and apply it at the destination (so the entire pasted code block is at the wrong indent level) or worse, just mess up indents entirely (no idea what's going on here) and I need to manually fix every line.
Example use case, for single PHP files which contain PHP, HTML, and Javascript, I often only want the pasted Javascript block to format nicely. Turning on "paste on format" will format the entire document, often times making the PHP sections awkwardly arranged.
I know that VSCode has "format on paste" in settings, but this formats the entire document. How can I format only the pasted code? Is this even possible?
Thank you
I am not certain whether you're fine with this roundabout solution, but you can format selection with Ctrl+K Ctrl+F (see official vscode site for more detail). So rather than turning on format on paste you can paste and then reselect it and do the shortcut above.
If you're not satisfied with this method, you can try using a vscode extension that was given here under a somewhat similar copy and paste problem
screenshot of the popup code suggestion box being mentioned
In VSCode Jupyter Notebook code cells, I keep having this annoying popup when I open any single or double quotes. It doesn't appear on markdown cells, nor in regular editor on .py files. It doesn't look like your typical IntelliSense suggestions either (I think), and I've tried to disable as many of such extensions as possible, but I'm not able to get rid of this annoying popup.
Appreciate if someone could point me in the right direction. Or at least what it's actually called, so I can Google the correct term. Thanks.
Figured it out.
In VS Code settings, go to Extensions > Jupyter > Python Completion Trigger Characters
defaults were: .%'"
So I deleted the single and double quotes, restarted, and voila, no more annoying popups.
All of a sudden, I am facing this problem in my VS Code editor. If you look at the first picture, that is a code snipped of my VUE 3 project. Where ever I am clicking in the picture, the cursor is not appearing.
This is the same file with the other section, where the cursor seems to be fine. Its works smoothly...
Does anyone have any idea about this issue??
I also checked in Stack Overflow, some issues suggested reinstalling the VIM extension, whereas I don't have VIM installed in my docker environment.
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.
Some time ago I've got a problem with Editor. I select multiple lines (with option-command-<up/down>) and trying to add multiple spaces to shift the whole block to the right. But editor adds tons of extra spaces. Please see screens attached.
Can anyone please help me to bring this to normal state?
Problem has been appeared recently (few days maybe).
VSCode version: 1.46.1
Found it. It was "editor.multiCursorMergeOverlapping". Setting it to true brings the behaviour to default.