網站首頁 編程語言 正文
在前端開發中,經常使用打印,格式化打印能幫助快速找到和區分打印內容,方法如下
- 設置 - 用戶代碼片段 - 選擇javascript
- 復制
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"console===": {
"prefix": "log",
"body": ["console.log('$1===', $1)"]
}
// "description": "Log output to console"
//
}
- 在設置中搜索
snippetSuggestions
,把第一項下拉的值改為top - 在js或者vue中輸入
log
,第一項為自定義的代碼片段,tab補全直接輸入需要打印的內容 - 如:
console.log('list===',list)
, 結果console.log('list===', [1,2,3])
原文鏈接:https://blog.csdn.net/weixin_44634372/article/details/112260918
相關推薦
- 2022-09-21 Flutter實現頂部導航欄功能_Android
- 2022-03-01 ivew 表格中列中使用tooltip文字提示,并且文字過長顯示...
- 2022-08-28 本周遇到的一些問題整理,有些未完全解決,留在下周寫
- 2022-12-05 Spark中的數據讀取保存和累加器實例詳解_相關技巧
- 2022-05-23 腳本實現SSL證書到期監控示例_PowerShell
- 2022-06-22 為Visual?Studio2019添加Git組件_實用技巧
- 2022-05-17 bat批處理之字符串操作的實現_DOS/BAT
- 2022-05-10 oracle如何創建或刪除臨時表空間和空間詳解
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支