How to customize vscode

  1. How to prevent VScode from auto-updating your extensions

    • This is useful for Jupyter extension in which newer versions often break the kernelFinder function for R kernels)
    • Put the following in your settings.json file:
      "extensions.autoUpdate": false,
      
  2. How to show an outline for Snakemake files

    • Install CodeMap extension
    • Put the following in your settings.json file:
          "codemap.smk": [
          {
              "pattern":  "^rule (.*):",
              "clear": "rule|:",
              "prefix": "Rule: ",
              "icon": "class"
          },
      ],
      "codemap.(Snakefile)": "config:codemap.smk",
      
  3. How to make Python programs show only functions and not variables