1.新建一个json文件,localstorage_b72da75d79277d2f5f9c30c9177be57e.json

{
  "show": false,
  "currentCategory": "general",
  "compiler": {
    "clusterCompile": false,
    "autoPreview": false,
    "autoRemoteDebug": false
  },
  "general": {
    "openLastModifiedProject": true,
    "autoPreviewType": "mobile",
    "autoRemoteDebugType": "mobile",
    "maxLogLength": 300,
    "enableNewFW": true,
    "enableGPU": false,
    "ignoreUnsafeProxy": false,
    "locale": "zh",
    "defaultWorkspace": "/Users/kunlideng/WeChatProjects"
  },
  "appearance": {
    "theme": "dark",
    "devtoolsTheme": "dark",
    "fontFamily": "SF Mono",
    "fontSize": 12,
    "lineHeight": 20,
    "simulatorAlignment": "left"
  },
  "edit": {
    "tabSize": 2,
    "insertSpaces": true,
    "wrap": "on",
    "minimap": false,
    "gitIgnoreWindowsReturn": true,
    "autoTypingsDetectEnabled": true,
    "alwaysOpenFileInNewTab": false,
    "autoSave": false,
    "autoRefresh": false,
    "saveBeforeCompile": false,
    "saveBeforePreview": false,
    "saveBeforeUpload": false
  },
  "proxy": {
    "proxyType": "SYSTEM",
    "proxyHost": "127.0.0.1",
    "proxyPort": "12639"
  },
  "notification": {
    "bbs": true,
    "sys": true,
    "alarm": true
  },
  "security": {
    "enableServicePort": true,
    "port": 19195
  },
  "geo": {
    "enabled": false,
    "latitude": 39.92,
    "longitude": 116.46,
    "speed": -1,
    "accuracy": 65,
    "altitude": 0,
    "verticalAccuracy": 65,
    "horizontalAccuracy": 65
  },
  "shortcuts": {
    "_editingShortcuts": false,
    "toggleToolbar": {
      "modifiers": ["cmd", "shift"],
      "key": "T"
    },
    "toggleSimulatorWindow": {
      "modifiers": ["cmd", "alt"],
      "key": "S"
    },
    "toggleEditorWindow": {
      "modifiers": ["cmd", "shift"],
      "key": "E"
    },
    "toggleFileTree": {
      "modifiers": ["cmd", "shift"],
      "key": "M"
    },
    "toggleDebugWindow": {
      "key": "I",
      "modifiers": ["cmd", "shift"]
    },
    "rebuild": {
      "key": "B",
      "modifiers": ["cmd"]
    },
    "format": {
      "key": "F",
      "modifiers": ["shift", "alt"]
    },
    "refresh": {
      "key": "R",
      "modifiers": ["cmd"]
    },
    "toggleForegroundBackgroundStatus": {
      "key": "",
      "modifiers": []
    },
    "documentationSearch": {
      "key": "",
      "modifiers": []
    },
    "gotoFile": {
      "key": "P",
      "modifiers": ["cmd"]
    },
    "gotoRecentFile": {
      "key": "E",
      "modifiers": ["cmd"]
    },
    "preview": {
      "key": "P",
      "modifiers": ["shift", "cmd"]
    },
    "upload": {
      "key": "U",
      "modifiers": ["shift", "cmd"]
    }
  },
  "syncTime": 1584263702017
}

2.打开路径C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\WeappLocalData,覆盖原文件

来源:https://developers.weixin.qq.com/community/develop/doc/000a02d19141b0ddc11aa05d55b800?jumpto=comment&parent_commentid=0006a84c0b4968411e2a02e85510&commentid=0006a84c0b4968411e2a02e85510

作者 铁血 汉子 2020年4月23日
2024/04/25/08:50:47pm 2020/4/23/3:36:20
0 1366