文章目录

  • 一、配置自动打开浏览器
  • 二、自动模板

一、配置自动打开浏览器

vue.config.js

module.exports = {devServer: {open: true // 是否自动启动浏览器},lintOnSave: false,//禁止eslink
};

二、自动模板

点击文件=》首选项=》代码片段=》vue.json

{// Place your snippets for vue-html here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected.// Example:// "Print to console": {//    "prefix": "log",//  "body": [//       "console.log('$1');",//         "$2"//    ],//    "description": "Log output to console"// }"Print to v2": {"prefix": "vue2","body": ["<template>","  <div>\n","  </div>","</template>","<script>","export default {","  data() {","    return {\n","    }","  },","  mounted(){\n","  },","  computed:{\n","  },","  methods:{\n","  },","}","</script>","<style scoped>\n","</style>","$2"],"description": "Log output to console"},"Print to v3": {"prefix": "vue3","body": ["<template>","  <div></div>","</template>","<script>","export default {","  components: {\n","  },","  props: {\n","  },","  setup(props, context) {\n","  }","}","</script>","<style scoped>\n","</style>",],"description": "Log output to console"},"Print to setup": {"prefix": "setup","body": ["<template>","  <div></div>","</template>","<script setup>\n","</script>","<style scoped>\n","</style>",],"description": "Log output to console"}}

在vue文件中输入vue就会选项

选择vue3出现下面代码片段

<template><div></div>
</template>
<script>
export default {components: {},props: {},setup(props, context) {}
}
</script>
<style scoped></style>

【愚公系列】2022年05月 vue3系列 配置自动打开浏览器和自动模板相关推荐

  1. 2022年05月信息系统监理师考试知识点分布

    2022年05月信息系统监理师考试知识点分布 艾教春 本文依据学员支离破碎的回忆 1.上午知识点分布 表1是按题号对应的考试内容. 表1 按试题号分布的考查内容 试题号 知识点 试题号 知识点 1 状 ...

  2. 【愚公系列】2022年02月 wireshark系列-数据抓包分析之ICMP协议

    文章目录 一.题目一 二.题目二 一.题目一 任务描述:获取正常的ICMP数据包.请求超时的数据包.主机不可达的数据包 一.捕获正常的ICMP数据包 在这里,我们通过ping命令来获取,先启动Wire ...

  3. 【愚公系列】2022年02月 wireshark系列-数据抓包分析之UDP协议

    文章目录 一.题目一 二.题目二 一.题目一 根据实验环境,本实验的步骤如下: 1.安装发包工具,并与Wireshark配合使用,获取UDP数据包 2.分析获取的UDP数据包 任务描述:安装发包工具, ...

  4. 【愚公系列】2022年02月 wireshark系列-数据抓包分析之IP协议

    文章目录 一.题目一 二.题目二 一.题目一 任务描述:使用Wireshark抓取IP数据包以及IP分片数据包 1.使用Wireshark抓取IP数据包 启动Wireshark,Filter选择IP协 ...

  5. 【愚公系列】2022年02月 wireshark系列-数据抓包分析之DNS协议

    文章目录 一.题目一 二.题目二 一.题目一 根据实验环境,本实验的步骤如下: 1.测试环境中获取DNS数据包. 2.分析DNS数据包. 任务描述:获取两种类型的DNS数据包 (1)通过浏览器访问域名 ...

  6. vue3启动项目时,自动打开浏览器怎么配置?

    在package.json里script的serve命令这行 加上"--open"

  7. 电子学会2022年6月青少年软件编程(图形化)等级考试试卷(三级)答案解析

    青少年软件编程(图形化)等级考试试卷(三级) 单选题(共25题,共50分) 1. 点击绿旗,舞台上的角色会说出?( ) A. 2022年5月1日 B. 1日5月2022年 C. 2022年05月01日 ...

  8. 学习vue3系列computed

    响应式API中 computed 和之前的 computed 选项用法类似. 对于任何复杂逻辑,我们都可能使用计算属性.比如翻转字符串: <template><h1>{{ te ...

  9. Vue3系列(一)之初始化项目及Vite 2.0配置

    Vite 2.0配置 一.vite介绍 二.项目搭建- vue3.0 + vite2 三.配置留存 vite.config.js 一.vite介绍 vite官网:https://cn.vitejs.d ...

最新文章

  1. Finding the Edges (Sobel Operator)
  2. Flutter开发之Android应用打包发布(22)
  3. 关于产品的一些交互理念
  4. 西电与中科大计算机专业哪个好,中国最好的5所“科技大学”,中科大第二,你的母校排第几?...
  5. 9、linux内存管理子系统
  6. TabLayout 与 FragmentTabHost
  7. 7.python之正则表达式re模块
  8. [剑指offer]面试题18:树的子结构
  9. JavaFX图表(五)之气泡图
  10. 特征点检测 FAST算法及代码详解
  11. ubuntu 14.04 将窗体button移到右边
  12. Linux tcpdump抓包分析
  13. 一个漂亮而强大的自定义view
  14. ASP.NET Report Starter Kit视频教程--1
  15. rapidxml学习
  16. 微信小程序地图实现多个位置标记marker
  17. ATE软件测试工程师,ATE软硬件测试开发工程师/高级工程师
  18. VC 使用msxml6.dll动态链接库中的函数读写XML文件
  19. 事件驱动的过程链方法(EPCs)
  20. python用于爬虫的包是_Python 爬虫之抓包的理解

热门文章

  1. 收件服务器imap账户信息,imap账号收件服务器地址
  2. 智慧小屋改进版(Arduino基于开源MQTT接入阿里云IOT)
  3. VBA将ppt保存为html,把某页PPT保存成一个演示文稿的VBA代码
  4. js验证 手机或固话
  5. 【安全狐】Nmap,Masscan扫描软件 安装教程和基本使用
  6. 【Mysql】Mysql数据库数据导出\导入
  7. 工业计算机刷游戏,我的世界电脑版工业2教程 带你深入了解游戏
  8. 中国式报表之条件格式设置
  9. 加载插件时,提示反射异常,调用的目标出现异常,该模块应包含一个程序集清单
  10. php imagemagick pango,imagemagick pango安装