Last active
June 27, 2024 13:58
-
-
Save Aveline-art/ce8d88db17b6da5faf84330427f4f280 to your computer and use it in GitHub Desktop.
settings.json for python and javascript project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
index-url = https://pypi.org/simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualenvs.in-project = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.fontSize": 14, | |
//"editor.formatOnSave": true, | |
"editor.wordWrap": "on", | |
"explorer.sortOrder": "type", | |
"isort.args": ["--profile", "black"], | |
//"python.defaultInterpreterPath": ".venv/bin/python", | |
"terminal.integrated.fontSize": 14, | |
"java.format.enabled": true, | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[markdown]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.unicodeHighlight.ambiguousCharacters": false, | |
"editor.unicodeHighlight.invisibleCharacters": false, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.wordWrap": "on", | |
"editor.quickSuggestions": { | |
"comments": "off", | |
"strings": "off", | |
"other": "off" | |
}, | |
"editor.tabSize": 4 | |
}, | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.black-formatter", | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": "always" | |
} | |
}, | |
"[scss]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
// Configure editor settings to be overridden for [yaml] language. | |
"[yaml]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2 | |
} | |
} |
"python.formatting.blackArgs": ["--line-length", "120"],
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 14,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"explorer.sortOrder": "type",
"isort.args": ["--profile", "black"],
//"python.defaultInterpreterPath": "backend/.venv/bin/python",
"python.formatting.provider": "black",
"terminal.integrated.fontSize": 14,
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
}
ENV POETRY_HOME=/usr/local/poetry
ENV PATH="$POETRY_HOME/bin:${PATH}"
RUN curl -sSL https://install.python-poetry.org | python3 - && . ~/.profile
virtualenvs.in-project = true
REmove "python.formatting.provider": "black", because of extension support
"workbench.colorCustomizations": {
"editorUnnecessaryCode.border": "#dd7aab"
}
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 14,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"explorer.sortOrder": "type",
"isort.args": ["--profile", "black"],
"python.defaultInterpreterPath": "server/.venv/bin/python",
"terminal.integrated.fontSize": 14,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"workbench.colorCustomizations": {
"editorUnnecessaryCode.border": "#dd7aab"
}
}
// Configure editor settings to be overridden for [yaml] language.
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
}
add java support
{
//"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 14,
//"editor.formatOnSave": true,
"editor.wordWrap": "on",
"explorer.sortOrder": "type",
"isort.args": [
"--profile",
"black"
],
"python.defaultInterpreterPath": ".venv/bin/python",
"terminal.integrated.fontSize": 14,
"java.format.enabled": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
},
"editor.tabSize": 4
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Configure editor settings to be overridden for [yaml] language.
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.insertSpaces": true,
"editor.tabSize": 2
}
}
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
"notebook.formatOnSave.enabled": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"isort.args":["--profile", "black"],