-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolchain: Better out-of-the-box experience in VS Code #4230
Conversation
.nvmrc - fnm, nvs, nvm .node-version - fnm, nvs, nodenv, (others) https://stackoverflow.com/a/62978089 Related: #3858
This is review-ready, further support could be added in another PR. |
Troubleshooting extensionsIf something breaks in the future, it's worth committing fixes to When an extension doesn't seem to be working:
Footnotes |
PerformanceThe Jupyter extension is installed and enabled by default along with the Python tools. You can disable it manually with the VS Code UI. You may also wish to add these settings to your User config: // Preferences: Open User Settings (JSON)
{
// ...
// Performance-oriented changes
"files.exclude": {
"**/*.pyc": {
"when": "$(basename).py"
},
"**/__pycache__": true,
},
"files.watcherExclude": {
"**/locale/**": true,
"**/node_modules": true
},
// ...
} |
Run linters separately: - in text editors - see kpi.code-workspace, #4230 - as a cli step - see package.json "scripts"
CoffeeLint in VS CodeThe CoffeeLint plugin I recommended,
I'm considering switching the recommended CoffeeLint plugin to
On the other hand,
For now, I think I'll leave |
The goal of this PR is to enable a good out-of-the-box experience in at least one text editor, supporting all of the tools we currently use:
This branch contains work for VS Code. The
kpi.code-workspace
will suggest all needed extensions when opened. Everything ought to work from a fresh install without additional config needed.Description
Add a
kpi.code-workspace
file that developers can use to configure VS Code with recommended extensions, including code linters and autoformatters.📄 Usage
Launch the
kpi.code-workspace
with VS Code. Install the Workspace Recommended extensions when prompted.The settings in
kpi.code-workspace
should make the extensions work without any additional configuration in VS Code. To run all the linters and formatters, you'll need to install npm packages.npm install
.venv
for best resultsTo turn on Format and Auto Fix on Save, use the Formatting toggle ✔, bottom right.
To view output from ESLint, Stylelint, Coffeelint, and the Python and TypeScript/JavaScript error checkers, see the "Problems" tab.