UNPKG

vue-linkto-vscode

Version:

``` 引入只需如下三步 //1、install package npm install -s vue-linkto-vscode //2、vue.config.js const { vueCodeLinkServer, vueCodeLinkLoaderConfig } = require('vue-linkto-vscode') module.exports = { ... devServer: {

13 lines (11 loc) 355 B
const child_process = require("child_process"); const pathUtil = require("../../utils/pathUtil.js"); function openCodeFileInVscode(path) { let filePath = pathUtil.projectBasePath + path; child_process.exec(`code -r -g ${filePath}`, { env: process.env, }); } exports.openCodeFile = function (path) { openCodeFileInVscode(path); };