发布于: 2023-9-1最后更新: 2024-12-31字数 211阅读时长 1 分钟

type
status
date
slug
summary
tags
category
icon
password
开发语言php

实现输入[ 得到 [];的效果

[win]ctrl+p,[mac]super+p 输入>keyboard 选择
notion image
在json文件里增加(目前有缺陷,sublime的设置是比较完美的.或者phpstorm默认不需要配置):

json

{ "key": "[", "command": "editor.action.insertSnippet", "args": { "snippet": "[$1];" }, "when": "editorTextFocus && !editorHasSelection && editorLangId == 'php' && /^\\\\s*\\\\$\\\\w+\\\\s*=\\\\s*$/.test(editor.document.lineAt(editor.selection.active.line).text) && /\\\\$$/.test(editor.document.lineAt(editor.selection.active.line).text) && !/\\\\bstring\\\\.quoted\\\\./.test(editor.document.languageId)" }
JSON

实现alt+; (或者其他快捷键)行末尾加;

方式1:直接安装扩展 Semicolon Insertion Shortcut 方式2(推荐): 1.安装扩展macros,(很强大,其他用法直接看扩展文档) 2.ctrl+p 输入>setting ,打开用户设置 3.填入以下内容(待生效的宏)

json

"macros": { "end_semicolon": [ // 末尾加分号 "cursorLineEnd", { "command": "type", "args": { "text": ";" } } ] }
JSON
4.ctrl+p 输入>keyboard,选择打开键盘快捷方式(json) ,填入内容

json

{ "key": "alt+;", "command": "macros.end_semicolon" }
JSON

Loading...
uniapp(vue2)+VoerkaI18n多语言

uniapp(vue2)+VoerkaI18n多语言


win下mkcert+phpenv本地ssl环境配置

win下mkcert+phpenv本地ssl环境配置