vscode快速批量添加引号和逗号

vscoee快速批量添加引号和逗号

原始数据

pragma: no-cache
sec-fetch-dest: document
sec-fetch-mode: navigate
sec-fetch-site: cross-site
sec-fetch-user: ?1
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

处理数据

# 打开vscode => CTRL + N 新键文件 => 粘贴数据 => CTRF + F => 输入下方正则 => 全部替换
(.*?): (.*)  # 选中正则
'$1': '$2', # 选中保留大小写

处理后数据

'pragma': 'no-cache',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'cross-site',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
Last modification:June 27th, 2020 at 03:45 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment