Prettier Not Working for Rust Visual Studio Code - visual-studio-code

I installed the Rust Prettier extension: https://github.com/jinxdash/prettier-plugin-rust but it is not formatting my rust files when I save.
I see this icon in VS Code in the Status Bar at the bottom-right indicating that Prettier is disabled when I click on a rust file:
This is usually what it looks like for me like if I click on a JavaScript file:
I also ran npm install --global prettier-plugin-rust prettier per the docs.
This is just showing the VS Code extension I've installed:
From VS Code Output
["INFO" - 10:35:08 PM] Extension Name: esbenp.prettier-vscode.
["INFO" - 10:35:08 PM] Extension Version: 9.10.3.
What's going on? Why is Prettier disabled on Rust files?
Could Rust files need to be enabled in the VS Code or Prettier settings?
Please let me know if I am missing any relevant information in the comments, thank you.

Related

VS code rust analyzer - no lint, autocomlete or hover

How to enable in VS Code rust-analyzer
hints
linting
auto complete?
here no contains function
I needed to add the correct folder to workspace and now it works just as a charm

SuiteScript with Intellisense in VS Code

I have the latest Visual Studio Code.
I have installed the latest SuiteCloud Extension for VS Code.
There is no intellisense.
I have also installed the SuiteNippets extension -- which is ok--but not full intellisense.
I am baffled as to why this is missing. Do I need to import/reference something from NetSuite--despite using their extension already?
How do I enable intellisense in VS Code for SuiteScript?
See my previous answer to a similar question. It's possible to use the Head-in-the-Cloud bundle to create javascript transpiled from TypeScript files. The code completion is good and you have the added benefit of type checking.

Couldn't start client ESLint message in VS Code

Recently I run into problem with ESlint extension in VS code. When I launch VS code and open up a js file, it popup message "Couldn't start client ESlint". It used to work fine. I tried to re-install eslint, VS code but it didn't help. Here are the versions I used.
VS code: 1.44.0 (user setup)
eslint: v6.8.0
ESLint Extension for VS code: 2.1.2
You need to dig a little bit more to get more details.
A good place to start would be to run the eslint show output command in VSCode. That should be a good starting point.
screenshot of ESLint: Show Output Command
The bottom line is that you need to follow the conventional installation path:
add eslint extension in vscode.
install eslint locally or globally via npm,
run eslint init in your project path and select proper configurations.
restart vscode just to make sure the settings are active.
again, the eslint output console should be a good starting point.
For me, it turns out I had the eslint.runtime and eslint.nodePath settings set to the specified node path on my system, but they were prefixed like this:
~/.nvm/versions/node/v14.17.0/bin/node
Using $HOME instead of ~ didn't solve it either.
I ended up having to specify an absolute path:
/home/<myusername>/.nvm/versions/node/v14.17.0/bin/node

Diff syntax highlighting in Visual Studio Code?

Is there an extension or setting, which makes a file with a .diff extension, opened in VS Code, display added lines in green and deleted lines in red? Currently, when I open a diff file, it displays added and deleted lines in the same color. I'm using VS Code Version: 1.37.1.
P.S. I tried the diff extension, but it doesn't work for me.
P.P.S. I tried reloading VS Code with extensions disabled and the highlighting is still broken:
I observed that .diff files are highlighted by default(without requiring any extensions), it's just that certain themes do not work well.
VS Code currently have this feature, if you get the .diff extension the sintax highlight performs correctly like git bash.
My VS Code is:
Version: 1.47.2 (system setup)
Commit: 17299e413d5590b14ab0340ea477cdd86ff13daf
Date: 2020-07-15T18:22:06.216Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 6.3.9600

Portable user settings and extensions in visual studio code

Is there a way to export -> import settings, extensions and other configuration from visual studio code? I am working on multiple computers, and would like to have the same VS Code environment setup everywhere. Is there a way accomplish that?
There's an extension that does exactly this called Settings Sync (aka/old name: Visual Studio Code Settings Sync)
You can find it here: https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync
It uses your github account token and gist and syncs:
- VSCode Extensions Settings
- Keybinding File
- Workspaces
- Launch File
- Settings File
- Snippets Folder