網站首頁 編程語言 正文
在前端開發中,經常使用打印,格式化打印能幫助快速找到和區分打印內容,方法如下
- 設置 - 用戶代碼片段 - 選擇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-06-21 C語言分別實現棧和隊列詳解流程_C 語言
- 2022-11-09 Apifox?Echo學習curl?httpie?命令使用詳解_相關技巧
- 2022-06-02 一篇文章帶你了解Python中的裝飾器_python
- 2023-02-26 flutter實現掃碼槍獲取數據源禁止系統鍵盤彈窗示例詳解_Android
- 2023-01-10 Oracle數據庫如何獲取當前自然周,當前周的起始和結束日期_oracle
- 2022-04-02 Android中Button實現點擊換圖案及顏色_Android
- 2023-01-15 React報錯Function?components?cannot?have?string?refs
- 2022-05-09 Python?matplotlib實現多重圖的繪制_python
- 最近更新
-
- 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同步修改后的遠程分支