intellij技巧

一、快捷鍵清單:css

https://resources.jetbrains.com/storage/products/webstorm/docs/WebStorm_ReferenceCard.pdfweb

Ctrl + X 服務器

剪切行 webstorm

Ctrl + D ui

複製行 spa

Ctrl + Y debug

刪除行 orm

Ctrl + F 圖片

查找(當前文件) ci

Ctrl + R 

替換(當前文件) 

Ctrl + / 

註釋當前行 

Ctrl + E 

最近打開的文件 

Ctrl + W 

選中代碼,連續按有其它效果 

Ctrl + B/Ctrl + 鼠標左鍵 

快速打開光標處的類或方法 

Ctrl + Alt + B 

跳轉方法實現處 

Ctrl + G 

快速定位到行 

Ctrl + shift + F 

自定義範圍查找 

Ctrl + shift + R 

自定義範圍替換 

Ctrl + shift + / 

塊級註釋 

Ctrl + shift + up/down 

代碼上下移動 

Ctrl + shift + N 

打開指定文件 

Ctrl + shift + U 

大小寫切換 

Ctrl + alt + S 

打開配置窗口(settings) 

Shift + enter 

從新開始一行(不管光標在哪一個位置) 

Ctrl + Alt + T with… 

(if, else, try, catch, for, etc) 

用 * 來圍繞選中的代碼行, 

( * 包括 if 、 while 、 try catch 等) 

Ctrl + Delete 

刪除文字結束 

Ctrl + Backspace 

刪除文字開始 

Ctrl + ]/[ 

光標到代碼塊的前面或後面 

Alt + 鼠標左鍵 

多個位置同時編輯 

Alt + j 

屢次選擇,選中以後能夠同時編輯 

Ctrl + alt + L 

格式化代碼 

Ctrl + alt + left/right 

返回上一次光標所在位置 

Alt + 1/ctrl + shift + F12 

打開/隱藏工程面板 

Alt + F3/ctrl + shift + F7 

快速查找選中文本並高亮顯示 

Alt + up/down 

在方法間快速移動定位 

Alt + left/right 

文件窗口切換 

Alt + shift + C 

打開當前文件的修改歷史 

Shift + F2/F2 

快速定位到高亮錯誤或警告處,加 shift 後向查找 

Shift + F6 

選中文件後,重命名文件 

Ctrl + F12 

查看當前文件的結構(structure) 

Ctrl + Shift + K 

打開 push 窗口 

Ctrl + K 

打開commit窗口

 

二、快速比較兩個文件的不一樣,選中文件後:ctrl+d

 

三、webstorm 設置局域網服務器:setting--build,execution,deployment--debugger--can accept external connections

 

四、css 文件修改路徑後,頁面元素的背景不顯示的問題?

解決辦法:在修改 css 文件的路徑後,background-image 並不會自動修改成正確的值,從而致使元素的背景顯示錯誤,此時需手動修改 background-image 的值,使其指向正確的圖片地址。

相關文章
相關標籤/搜索