Skip to content

Instantly share code, notes, and snippets.

@Aveline-art
Last active June 27, 2024 13:58
Show Gist options
  • Save Aveline-art/ce8d88db17b6da5faf84330427f4f280 to your computer and use it in GitHub Desktop.
Save Aveline-art/ce8d88db17b6da5faf84330427f4f280 to your computer and use it in GitHub Desktop.
settings.json for python and javascript project
[global]
index-url = https://pypi.org/simple
virtualenvs.in-project = true
{
//"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
}
}
@avalatea
Copy link

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
RRULE:FREQ=WEEKLY;BYDAY=WE;BYMONTHDAY=8,9,10,11,12,13,14,15,16,17,18,19,20,
 21,22,23,24,25,26,27,28,29,30,31
SUMMARY:meeting test
DTSTART;VALUE=DATE:20190131
SEQUENCE:0
DESCRIPTION:testtest
END:VEVENT
END:VCALENDAR

@avalatea
Copy link

avalatea commented Nov 5, 2022

"isort.args":["--profile", "black"],

@avalatea
Copy link

avalatea commented Nov 21, 2022

"python.formatting.blackArgs": ["--line-length", "120"],

@avalatea
Copy link

{
  "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
    }
  }
}

@avalatea
Copy link

avalatea commented Jun 2, 2023

ENV POETRY_HOME=/usr/local/poetry
ENV PATH="$POETRY_HOME/bin:${PATH}"
RUN curl -sSL https://install.python-poetry.org | python3 - && . ~/.profile

https://docs.docker.com/build/cache/backends/gha/

@avalatea
Copy link

virtualenvs.in-project = true

@avalatea
Copy link

avalatea commented Aug 9, 2023

REmove "python.formatting.provider": "black", because of extension support

@avalatea
Copy link

  "workbench.colorCustomizations": {
    "editorUnnecessaryCode.border": "#dd7aab"
  }

@avalatea
Copy link

{
  "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"
  }
}

@avalatea
Copy link

// Configure editor settings to be overridden for [yaml] language.
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
}

@avalatea
Copy link

avalatea commented Nov 17, 2023

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
  }
}

@avalatea
Copy link

avalatea commented Mar 8, 2024

"[python]": {
  "editor.defaultFormatter": "ms-python.black-formatter",
  "editor.codeActionsOnSave": {
    "source.organizeImports": "always"
  }

@avalatea
Copy link

"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