Loading [MathJax]/jax/output/CommonHTML/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >【前端财富】前端工程师装机指南 (windows10)

【前端财富】前端工程师装机指南 (windows10)

作者头像
一尾流莺
发布于 2022-12-10 05:58:07
发布于 2022-12-10 05:58:07
1.6K00
代码可运行
举报
运行总次数:0
代码可运行

电脑装机

记录下本菜鸟作为一个初级前端,当拿到一个新电脑的时候

windows terminal

terminal 是我个人比较喜欢的命令行工具,默认可以启动 cmdpowershellAzure Cloud Shell , 还可以自己添加配置,比如 git-bash

并且界面比较美观,可以看一下比原生的 cmd 或者 powershell 好看多了。

系统商店搜索 terminal 进行安装

powershell 直接运行脚本会报错

先通过管理员身份启动 powershell 然后执行 set-ExecutionPolicy RemoteSigned 来让 powershell 支持运行脚本。

Watt Toolkit

系统商店搜索 Watt Toolkit ,下载安装,勾选 github 然后点击加速就行了,这样就可以快速合法的访问 github 了。

谷歌浏览器

新电脑自带一个 edge,虽说也是和谷歌一样的内核,但我更习惯用谷歌

安装后进行下列操作

  • 设置浏览器显示最小字体,防止开发移动端时小字体显示出问题
  • 把浏览器首页设置为 👉👉 流莺起始页
  • 安装插件
    • VisBug
    • Vue.js devtools
    • Code Cola
    • 万能复制(Enable Copy)
    • 划词翻译
    • 草料二维码
    • 插件数不胜数,喜欢啥安装啥...

输入法

系统输入法不喜欢,安装个自己喜欢的,再换个皮肤,美滋滋。

vscode

安装插件

👉👉 【图文并茂】六十多个 vscode 插件,助你打造最强编辑器

设置代码片段

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
{
    "VUE3.0": {
        "prefix": "vv3",
        "body": [
            "<template>",
            "  <div>\n",
            "  </div>",
            "</template>\n",
            "<script lang='ts'>",
            "import { defineComponent } from 'vue';\n",
            "export default defineComponent({",
            "  name: '$1',",
            "  setup() {",
            "    return {};",
            "  },",
            "});",
            "</script>\n",
            "<style lang='scss'>\n",
            "</style>\n"
        ],
        "description": "Create vue template"
    },
    "VUE3setp": {
        "prefix": "v3set",
        "body": [
            "<template>",
            "  <div class=''>\n",
            "  </div>",
            "</template>\n",
            "<script lang='ts' setup>",
            "</script>\n",
            "<style lang='scss'>\n",
            "</style>\n"
        ],
        "description": "Create vue template"
    },
    "fn": {
        "scope": "javascript,typescript",
        "prefix": "fn",
        "body": [
            "const $1 = ($2)=>{$3}"
        ],
        "description": "fn"
    },
    "refn": {
        "scope": "javascript,typescript",
        "prefix": "vref",
        "body": [
            "const $1 = ref($2)"
        ],
        "description": "vref"
    },
    "computedfn": {
        "scope": "javascript,typescript",
        "prefix": "vcomputed",
        "body": [
            "const $1  = computed(($2) => {",
            "$3",
            "})"
        ],
        "description": "vcomputed"
    },
    "port": {
        "scope": "javascript,typescript",
        "prefix": "port",
        "body": [
            "import $1 from '$2'"
        ],
        "description": "port"
    },
    "reactive": {
        "scope": "javascript,typescript",
        "prefix": "vreactive",
        "body": [
            "const state$1 = reactive({",
            "$2",
            "});"
        ],
        "description": "vreactive"
    },
    "Print to console": {
        "scope": "javascript,typescript",
        "prefix": "log",
        "body": [
            "console.log('🚀🚀~ $1:',$1);"
        ],
        "description": "Log output to console"
    }
}

设置配置文件

👉👉 vscode默认设置

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
{
  //! `````````````````````````````````````````````````````````编辑器外观设置```````````````````````````````````````````````````````
  // 编辑器文件图标主题
  "workbench.iconTheme": "vscode-great-icons",
  // 编辑器主题
  "workbench.colorTheme": "Community Material Theme Palenight High Contrast",
  // 代码字体和颜色
  "editor.tokenColorCustomizations": {
    "comments": {
      // 设置字体样式 加粗 下划线 斜体等
      "fontStyle": "",
      // 设置字体颜色
      "foreground": "#08a43b",
    },
  },
  //Highlight Matching Tag 的颜色
  "highlight-matching-tag.styles": {
    "opening": {
      "name": {
        "underline": "#fff",
        "highlight": "#08a43b"
      }
    }
  },
  // 代码注释高亮颜色
  "better-comments.tags": [
    {
      "tag": "!",
      "color": "#FF2D00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "?",
      "color": "#3498DB",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "//",
      "color": "#474747",
      "strikethrough": true,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "todo",
      "color": "#FF8C00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "*",
      "color": "#08a43b",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    }
  ],
  //! `````````````````````````````````````````````````````````编辑器自身设置```````````````````````````````````````````````````````
  // 对 {{#foo}} 和 {{/foo}} 进行格式化与缩进。
  "html.format.indentHandlebars": true,
  // 缩进 "" 和 "" 部分。
  "html.format.indentInnerHtml": true,
  // 控制编辑器是否自动格式化粘贴的内容。格式化程序必须可用,并且能针对文档中的某一范围进行格式化
  "editor.formatOnPaste": true,
  // 在保存时格式化文件。格式化程序必须可用,延迟后文件不能保存,并且编辑器不能关闭。
  "editor.formatOnSave": true,
  // 控制编辑器在键入一行后是否自动格式化该行。
  "editor.formatOnType": true,
  // 当编辑器失去焦点时,将自动保存未保存的编辑器。
  "files.autoSave": "onFocusChange",
  // 一个制表符等于的空格数
  "editor.tabSize": 2,
  // 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体
  "editor.mouseWheelZoom": false,
  //修改标签时,同时修改头和尾标签
  "editor.linkedEditing": true,
  //显示空格
  "editor.renderWhitespace": "all",
  //搜索排除目录
  "search.exclude": {
    "**/node_modules": true,
    "**/.history": true
  },
  //在一定数量的字符后显示标尺
  "editor.rulers": [
    120
  ],
  // 保存自动修复eslint
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // 启用后,差异编辑器将忽略前导空格或尾随空格中的更改。
  "diffEditor.ignoreTrimWhitespace": false,
  /*
     ** 默认行尾字符。
     ** - \n: LF
     ** - \r\n: CRLF
     ** - auto: 使用具体操作系统规定的行末字符。
     */
  "files.eol": "\n",
  // 针对 [shellscript] 语言,配置替代编辑器设置。
  "[shellscript]": {
    "files.eol": "\n"
  },
  //控制如何处理在受信任的工作区中打开不受信任的文件  open: 始终允许不受信任的文件引入受信任的工作区,而不显示提示。
  "security.workspace.trust.untrustedFiles": "open",
  // 配置语言的文件关联 (如: `"*.extension": "html"`)。这些关联的优先级高于已安装语言的默认关联。
  "files.associations": {
    "*.vue": "vue",
    ".prettierrc.json": "jsonc"
  },
  /*
     ** 控制编辑器是否应运行在对屏幕阅读器进行优化的模式。
     **  - auto: 编辑器将使用平台 API 以检测是否附加了屏幕阅读器。
     **  - on: 编辑器将对屏幕阅读器的使用进行永久优化。
     **  - off: 编辑器将不再对屏幕阅读器的使用进行优化。
     */
  "editor.accessibilitySupport": "off",
  // 控制资源管理器是否在把文件删除到回收站时进行确认。
  "explorer.confirmDelete": true,
  // 定义一个默认格式化程序, 该格式化程序优先于所有其他格式化程序设置。必须是提供格式化程序的扩展的标识符。
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // 控制"转到定义"鼠标手势是否始终打开预览小部件。
  "editor.definitionLinkOpensInPeek": true,
  // 控制编辑器是否突出显示语义符号的匹配项。
  "editor.occurrencesHighlight": false,
  // 控制编辑器是否仅在焦点在编辑器时突出显示当前行。
  "editor.renderLineHighlightOnlyWhenFocus": true,
  // 控制编辑器是否显示控制字符。
  "editor.renderControlCharacters": true,
  // 启用后,将在保存文件时删除行尾的空格。
  "files.trimTrailingWhitespace": true,
  // 是否在解决合并冲突后自动转到下一个合并冲突
  "merge-conflict.autoNavigateNextConflict.enabled": true,
  // 启用后,按下 TAB 键,将展开 Emmet 缩写。
  "emmet.triggerExpansionOnTab": true,
  // force-aligned: 对除第一个属性外的其他每个属性进行换行,并保持对齐。
  "html.format.wrapAttributes": "force-aligned",
  // 定义一个默认格式化程序, 该格式化程序优先于所有其他格式化程序设置。必须是提供格式化程序的扩展的标识符。
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "[css]": {
    "editor.defaultFormatter": "vscode.css-language-features",
  },
  "[sass]": {
    "editor.defaultFormatter": "johnsoncodehk.volar",
  },
  "[scss]": {
    "editor.defaultFormatter": "vscode.css-language-features",
  },
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  //! `````````````````````````````````````````````````````````拓展插件设置```````````````````````````````````````````````````````
  //? `````````````````````````````````prettier相关````````````````````````````````````````````````````````````/
  //使用单引号
  "prettier.singleQuote": true,
  //行尾分号
  "prettier.semi": true,
  //tab健尺寸
  "prettier.tabWidth": 2,
  //在对象或数组最后一个元素后面是否加逗号
  "prettier.trailingComma": "all",
  //  prettier-在对象,数组括号与文字之间加空格 "{ foo: bar }"
  "prettier.bracketSpacing": true,
  // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
  "prettier.arrowParens": "always",
  "terminal.integrated.allowMnemonics": true,
  "terminal.integrated.automationShell.linux": "", // 不让prettier使用tslint的代码格式进行校验
  //? ```````````````````````````````````eslint相关````````````````````````````````````````````````````````````/
  //定义哪些文件需要进行eslint验证
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "html",
    "json"
  ],
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },
  //? ```````````````````````````````````console相关````````````````````````````````````````````````````````````/
  // 图案
  "turboConsoleLog.logMessagePrefix": "🚀🚀",
  // 是否包含文件名和行数
  "turboConsoleLog.includeFileNameAndLineNum": false,
  // 行尾添加分号
  "turboConsoleLog.addSemicolonInTheEnd": true,
  // 使用单引号
  "turboConsoleLog.quote": "'",
  //是否包含函数名
  "turboConsoleLog.insertEnclosingFunction": false,
  //? ```````````````````````````````````````注释相关`````````````````````````````````````````````````````````````````*/
  //自动生成注释插件  文件头部注释
  "fileheader.customMade": {
    "Author": "一尾流莺",
    "Description": "",
    "Date": "Do not edit",
    "LastEditTime": "Do not edit",
    "FilePath": ""
  },
  //自动生成注释插件  函数注释
  "fileheader.cursorMode": {
    "description": "",
    "param": "",
    "return": ""
  },
  //? `````````````````````````````````````vetur相关````````````````````````````````````````````````````````````*/
  // 所有默认格式化程序的选项
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_line_length": 999,
      "wrap_attributes": "force-aligned",
      "end_with_newline": false,
      "indent_with_tabs": false
    },
    "prettyhtml": {
      "printWidth": 200,
      "singleQuote": true,
      "wrapAttributes": false,
      "sortAttributes": false
    },
    "prettier": {
      "semi": false,
      "singleQuote": true,
      "trailingComma": "all"
    }
  },
  //启用vetur验证
  "vetur.format.enable": true,
  //js的格式化方式
  "vetur.format.defaultFormatter.js": "prettier",
  //html的格式化方式
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  //html的格式化方式
  "vetur.format.defaultFormatter.css": "prettier",
  "vetur.format.defaultFormatter.scss": "prettier",
  "vetur.format.defaultFormatter.sass": "sass-formatter",
  // Enable template interpolation service that offers diagnostics / hover / definition / references
  "vetur.experimental.templateInterpolationService": false,
  //! ```````````````````````````````````````````````````````typescript相关```````````````````````````````````````````````````````````*/
  "typescript.tsdk": "node_modules/typescript/lib",
  // 定义匿名函数的函数关键字后面的空格处理。
  "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
  // 定义函数参数括号前的空格处理方式。
  "javascript.format.insertSpaceBeforeFunctionParenthesis": false,
  "vetur.validation.script": false,
  "editor.gotoLocation.multipleTypeDefinitions": "goto",
  "editor.gotoLocation.multipleReferences": "goto",
  "editor.gotoLocation.multipleImplementations": "goto",
  "editor.gotoLocation.multipleDefinitions": "goto",
  "editor.gotoLocation.multipleDeclarations": "goto",
  "explorer.compactFolders": false,
  "html.format.wrapLineLength": 0,
  "typescript.updateImportsOnFileMove.enabled": "never",
  "volar.codeLens.scriptSetupTools": true,
  "volar.codeLens.pugTools": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "git.confirmSync": false,
  "polacode.shadow": "none",
  "polacode.transparentBackground": true,
  "cSpell.userWords": [
    "maxlength"
  ],
}

git/svn

git 必装,svn 取决于公司用不用。

包管理工具

不用全装,需要哪个装哪个

  • npm
  • yarn
  • pnpm
  • cnpm
  • ... ...

nodejs

  • nvm 版本管理,没装上,不装了😡😠😡
  • nrm 源管理工具
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
// 全局安装 nrm
npm install -g nrm
// 查看源
nrm ls
// 切换源
nrm use taobao
// 添加源
nrm add ****
  • vue-cli

开发 vue 使用,公司的老工程还是需要的。

  • tree-cli

比系统自带的更好的生成目录树工具。

  • node-mon

开发 nodejs 项目必备,热启动。

工具

  • Photoshop(切图仔必须)
  • pxcook(增强ps)
  • Fiddler EveryWhere(手机调试,选装)
  • Sourcetree/github desktop(代码管理)
  • switchHost(Host管理)
  • uTools(快捷工具)
  • Foxmail(邮箱管理)
  • xmind(思维导图)
  • wolai(笔记,中文低配版的nation)
  • 微信/企业微信(摸鱼/工作)
  • ScreenToGif(录屏转gif)
  • 闪电Gif制作软件
  • snipaste(截图软件)
  • 酷狗/网易云/listen1 (摸鱼听歌)
  • apifox/postman (接口调试工具)
  • wps office(办公)
  • 百度网盘/阿里网盘
  • Navicat(数据库)
  • sunlogin(远程操作)
  • nginx(前端)
  • mongodb compass(mongodb数据库专用)
  • Windows Terminal(增强版命令行工具)
  • Everything(文件查找)
  • WizTree(磁盘分析)
  • xyplorer(文件管理)
  • 腾讯会议
  • ... ...
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-06-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
前端-团队效率(二)代码规范
// "javascript.suggest.autoImports": true,
吴文周
2020/01/17
1.4K0
【Vscode】 前端项目文件自动格式化(.Vue,.js)
【工欲善其事,必先利其器】大家用什么来开发前端项目呢,WebStorm, Atom, 还是Sublime ,这里面哪个不是大名鼎鼎,但是论轻量级,论不要钱的,论生态,Visual Studio Code都是相当强大的,VSCode这款超级编辑器,正在蚕食市场上所有IDE和编辑器的市场。只要插件运用得当,vscode也能达到商业软件效果。
DDGarfield
2022/06/23
3.1K0
前端工程师vscode必备插件(20个)
按需安装。考虑到有些插件对于一些新手来说暂时用不上,因此我将分为 前端新手→前端程序员→前端工程师 三个阶段来推荐需要安装的插件。
全栈程序员站长
2022/09/17
3.3K0
前端工程师vscode必备插件(20个)
前端VsCode使用插件
3.Chinese (Simplified) (简体中文) Language Pack for Visual 中文简体的vscode汉化
全栈程序员站长
2022/09/17
1.7K0
前端VsCode使用插件
vscode 前端最佳插件配置
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/125833.html原文链接:https://javaforall.cn
全栈程序员站长
2022/07/22
6K0
vscode 前端最佳插件配置
VSCode代码格式化设置
Vetur对于html文件默认使用的是prettyhtml,但是由于prettier也可以支持html的格式化,所以我觉得统一使用prettier对全语言的格式化是比较简洁的。
用户6094182
2020/08/18
4.4K0
是时候提高你的编码效率了【VSCode篇】
俗话说得好,工欲善其事必先利其器,要想工作效率高,码代码的工具用的好是必须的,这里主要说一下 Mac 上 VScode 的快捷键,帮助大家快速搭建良好的开发工具。
石燕平
2019/12/02
1.4K0
Vue 基于VSCode结合Vetur+ESlint+Prettier统一Vue代码风格
安装Vetur,ESlint, Prettier - Code formatter插件
授客
2021/03/16
7.4K0
Vue 基于VSCode结合Vetur+ESlint+Prettier统一Vue代码风格
VScode 配置记录
配置文件 // 将设置放入此文件中以覆盖默认设置 { // 显示垂直标尺的列 "editor.rulers": [], "editor.fontSize": 16, "workbench.iconTheme": "vscode-icons", // 允许在任何文件中设置断点 "debug.allowBreakpointsEverywhere": true, // 控制概述标尺周围是否要绘制边框。 "editor.overviewRulerBorder": false, "
离殊
2022/04/01
1.1K0
VScode 配置记录
一款超人气代码格式化工具prettier
官方自己介绍说,prettier是一款强势武断的代码格式化工具,它几乎移除了编辑器本身所有的对代码的操作格式,然后重新显示。就是为了让所有用这套规则的人有完全相同的代码。在团队协作开发的时候更是体现出它的优势。与eslint,tslint等各种格式化工具不同的是,prettier只关心代码格式化,而不关心语法问题。
Daotin
2019/05/10
4K0
一款超人气代码格式化工具prettier
VSCode开发环境配置
VSCode(Visual Studio Code)是由微软研发的一款免费、开源的跨平台文本(代码)编辑器,算是目前前端开发几乎完美的软件开发工具。
羊羽shine
2019/08/05
2.8K0
VSCode开发环境配置
【开发工具】前端开发者更换新电脑,需要做哪些准备?
最近从Windows换到MacOS系统,借此记录一下作为前端入手新的系统需要做哪些准备:
且陶陶
2023/04/12
4170
【开发工具】前端开发者更换新电脑,需要做哪些准备?
Vue安装vetur、eslint、prettier配置
{ "editor.rulers": [ 120 ], "editor.wordWrapColumn": 120, "editor.lineNumbers": "on", //打开行号 "editor.quickSuggestions": { //开启自动显示建议 "other": true, "comments": true, "strings": true }, "vetur.format.defaultFormatter.html":
苦咖啡
2019/12/10
1.3K0
使用这些配置规范并格式化你的代码
在日常工作中,我们会接触形形色色的工程。如果工程使用的技术架构不同,可能会有对应不同的代码规范。而每个人的编码习惯是不一样的,也是难以短时间内改变的,这也是我们常常在开发一个新工程的时候,会遇到各种规范报错的原因。
政采云前端团队
2021/11/02
2.7K0
VSCode支持Vue自动保存格式化的配置
安装三个插件:Prettier - Code formatter、ESLint、Vetur。对应的插件图片如下:
kai666666
2020/10/17
7.6K0
webpack5 + webpack-chain 构建一个大型应用系列 2(附 vscode 跟 prettier 配置)
笔者使用了 webpack5 将项目进行了重构,并全程使用的 webpack-chain 来配置 webpack,每个功能也都是独立文件,可单独使用。因此该项目的配置可以在任何项目中被使用。此项目可实战亦可当成 webpack 手册来学习。我开发这个项目的目的就是无论你是新手还是有经验的大佬都可以从中有所收获。此项目为想学 webpack 的同学提供了很好的实战平台,每一个 插件 每一个 loader 都会有详细的讲解及使用背景。
null仔
2020/03/02
4.1K0
VScode 开发Vue EsLint和Format 保存冲突问题
之前用VScode开发Flutter,设置自动保存格式化。现在开发Vue使用Eslint进行规则验证,为了不必要的麻烦,想要设置自动保存修复不规则问题。
星宇大前端
2020/05/01
2.8K0
vscode-前端插件
Code Spell Checker 单词拼写检查,单词拼写提示,单词拼写错误后会有提示
全栈程序员站长
2022/09/17
1.9K0
vscode-setting.json配置
1{ 2  "window.zoomLevel": 1, 3  "git.ignoreMissingGitWarning": true, // 忽略“缺失git”的警告 4  "files.autoSave": "onFocusChange", // 离开页面自动保存 5  "workbench.colorTheme": "Default Light+", // 配色 6  "editor.tabSize": 2, // 缩进,tab格数 7  "editor.fontSize": 14, /
xing.org1^
2020/02/17
2.3K0
vscode下配置vue.js的插件
9、Path Intellisense:路径自动感知,在配置文件中配置@后我们就可以很方便快捷的引用各种文件了
西西嘛呦
2020/08/26
3.6K0
相关推荐
前端-团队效率(二)代码规范
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验