I'm using p(...) as a shortcut for console.log(...) in JavaScript. And every time I use it VSCode auto-comlete it into package(...).
Seems like there are couple of different code generation and JS variables auto-comlete support. Is there a way to know where that package come from and how to disable it? Visually it looks like that:
Related
I just installed VSCode and React Native but when I watched some videos about app development in these I noticed that VSCode suggests React Native components and CSS properties (in app.js) for the user so want to find a way to enable this function or there might be an extension that does it.
here are a couple of images for more clarity (from videos - the results I want)
https://i.stack.imgur.com/cPAPE.png
https://i.stack.imgur.com/m7aK1.png
I tried maybe importing all React Native components but it seems to be stupid.
I noticed that in the CSS files VSCode does suggest properties.
VSCode does suggest words I already used.
I think I found a solution. I just reset my VScode settings and it seem to work.
How to reset settings in Visual Studio Code?
I'm in a web design class and writing HTML tags. I have not used VSCode prior to this, but I am told that it's supposed to have emmet built in and should extend my code when hitting tab. It does not, tab works like a regular tab button.
I tried various online solutions such as including html in the languages and turning on 'true' for emmet when hitting tab and it still doesn't work. Any idea how to get it to happen?
Is there any way to get another editor, like VSCode, to format code ( JavaScript in my case, if it matters ) like the WebStorm IDE formats code by default? I'm not familiar with that IDE, but I'm hoping that it uses a config of some sort that can maybe be exported and imported in another editor. I tried looking for one, but couldn't find anything.
The core problem, if it matters, is that all of our team members use WS to write code and they use the built in formatter, so if I use another one it creates inconsistencies and long commits when editing already written files. As you are probably guessing by now, I would like to use another editor, because I find IDE's bloated and slow.
I don't know if there is a way to import Webstorm formatting rules into VS Code, but I think there is another solution:
I remember in one of the projects i worked on, we used a linter which also auto-formatted code. The advantage is that Webstorm and VSCode can pick pick the linter rules automatically, and then you have same formatting on both.
The downside is that you would need to agree with the team on what does rule will be and then configure them on the linter.
I'm writing extension that provides CompletionItems to VSCode CSS Intellisense. The issue is that some completions are already being provided to Intellisense by internal VSCode completion providers resulting in showing same complitions twice.
What I need is to remove those duplications. How can I achieve this without messing with css language-server?
VS Code shows suggestions from all extensions that provide suggestions. It is not possible for your extension to disable the suggestions from another extension: https://github.com/Microsoft/vscode/issues/63004
You could try:
Tell users to disable the built-in css extension.
Have your extension register a new language and a new completion provider for that language.
I've been using PhpStorm for awhile, for PHP as well as JS. I would love, however, to switch to VSCode since it's lighter, open source and free. But one feature that I cannot quite carry over with extensions is Code Style settings.
PhpStorm has a sweet visual interface in settings that allows you to set up detailed code style rules with live examples right there. ESLint, unfortunately, doesn't have anything similar - it's all text rules (which is a drag and takes forever to set up).
So I'm wondering if there's any way at all to export PhpStorm code style settings as ESLint rules? Or if there's an app that has a similar interface to set up ESLint? Or maybe there's a VScode extension that I am missing that has a similar interface?