JetBrains 篇
插件
通用
inlineError —— 内联显示 error 信息
GitToolbox —— 更好的查看Git记录
IdeaVim —— Vim模拟器
IdeaVim-EasyMotion —— 模拟vim-easymotion
IdeaVimExtension —— vim一些插件拓展
AceJump —— 类似VIM的位置跳转
Material Theme UI —— 主题
Atom Material Icons —— 更好看的文件图标
Key Promoter X —— 显示鼠标指向功能的快捷键
Quick File Preview —— 快速文件预览
GitHub Copilot —— Github代码自动提示
CodeGlance3 —— 代码走廊
WakaTime —— 记录代码时间
LeetCode Editor —— LeetCode插件
.ignore —— ignore插件
Murphysec Code Scan —— 第三方依赖安全检测
Rainbow Brackets —— 彩虹括号
Indent Rainbow —— 彩虹缩进
Nyan Progress Bar —— 彩虹猫进度条
Makefile Language —— 语法提示(新版自带)
[[JetBrains]]
WebStrom
Cypress Support —— e2e测试框架
AI 相关-不需要了
Sourcegraph Cody - 免费的 ai 补全
Qoder CN - 阿里巴巴的通义免费 ai 补全
Mintlify Doc Writer - 通过 ai 解释你的代码, 编写一些注释文档
TRAE AI - 字节跳动豆包出品的 ai 助手
配置
Appearance & Behavior
- Appearance
- UI Options
- 勾选 Compact mode
- UI Options
Editor
- Color Scheme -> Scheme -> 选择 Material Darker
- Color Scheme Font -> Font 选 JetBrains Mono -> Size 配置 16 -> 勾选 Enable ligatures
- Console Font -> Font 选 JetBrains Mono
Advanced Settings
- 选中 Disable double modifier key shortcuts
Keymap
- search Everywhere -> shift+command+p
个别需要补充的插件说明
Github Copilot
强制显示代码提示 option + \
向左切换建议 option + [
向右切换建议 option + ]
AceJump
ctrl + ; 接着输入需要搜索的关键字
backspace 退格键清空搜索关键字,重新输入
tab 查看下一页的搜索结果
ESC 退出搜索状态
enter 跳转到下一个结果
shift + enter 跳转到上一个结果
如果你是ideaVim用户可以设置以下配置
mac/linux 编辑 .ideavimrc
windows 编辑 ._ideavimrc
1 | " Press `f` to activate AceJump |
特殊问题
rpx报错问题
方案1 使用sass函数
取消勾选 propetry value / element
Editor —— Inspetions —— CSS ——Invalid CSS propetry value 和 Invalid CSS element
或者使用scss,创建一个fn.scss
1 | @function rpx($value) { |
方案2 使用file watchers
添加新规则
Name:css样式rpx空格处理
File type:Vue.js template 或者 Cascading Style Sheet
Scope:Project Files
Program:sed
Arguments:-i "" s/"\ rpx"/rpx/g $FilePath$
Output paths to refresh:$FilePath$
如果是 Windows
Arguments 换成-i s/"\ rpx"/rpx/g $FilePath$
Program 需要填入sed的完整路径
下载地址:https://github.com/mbuilov/sed-windows
无法识别alias别名
配置 webpack 导入 alias 的 config
alias.config.js
1 | const resolve = dir => require('path').join(__dirname, dir) |
live template
rfch
1 | import React, { useEffect } from 'react'; |