vscode
vscode 技术专栏
小达学徒
小白代码搬运工,前端苦行憎
展开
-
vscode CRLF 转为 LF
安装插件 EditorConfig for VS Code新建.editorconfig 文件在根目录.editorconfig 文件添加以下呢内容root = true[*]charset = utf-8indent_style = spaceindent_size = 2end_of_line = lfinsert_final_newline = truetrim_trailing_whitespace = true保存文件时就会自动将CRLF转为LF...原创 2021-07-19 23:43:23 · 2258 阅读 · 1 评论 -
vscode 项目中使用路径别名 import 没有提示
在项目中创建jsconfig.json文件, 添加一下内容{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["src/*"] }, "target": "ES6", "module": "commonjs", "allowSyntheticDefaultImports": true }, "include": ["src/**/*"], "exclude": ["n原创 2021-08-02 10:18:52 · 1393 阅读 · 0 评论 -
在vscode 终端直接删除node_modules
方法一、直接使用命令npx rimraf node_modules二、安装 rimraf 再删除# 安装 rimrafnpm install -g rimraf# 删除node_modulesrimraf node_modules原创 2021-10-25 14:51:45 · 1079 阅读 · 0 评论 -
vscode 使用Easy LESS 开发微信小程序
微信小程序.wxss文件里的格式是css的格式,开发起来非常不方便,推荐使用vscode 的一个插件Easy LESS,可以在开发微信小程序时使用less开发。使用方法在VScode 的插件库中搜索Easy LESS,安装在文件加中创建less文件在创建的less文件中头部加入以下注释// out: index.wxss /* index 是可以改变的 */开发时只要在l...原创 2020-04-26 16:44:58 · 635 阅读 · 0 评论