設置簽名
File->settings->Editor->File and Code Templates->Python Script
注意小燈
如果 IDEA 提示有錯誤海洼,尤其是代碼下面飄著小紅線/小黃線/小灰線,鼠標在這些線上停留一會兒就會出現(xiàn)一盞小燈掂器,點擊該小燈就會有相應的操作建議竹习。——此經(jīng)驗也適用于他們家的其他編輯器怖竭,如 webstorm/phpstorm/pycharm/goland.
自動換行
settings -> Editor -> General -> Use soft wraps in editor
Top bar
view -> Top bar
點擊Top bar 中的回退按鈕,即可回退到 ctrl 跳轉前的函數(shù)曼振。如圖:
分屏效果
split.png
實現(xiàn)方法:
split_method.png
快捷鍵
-
ctrl + shift + up/down
, 將某行代碼上移或下移
可以拿這幾行代碼做實驗
if text is None:
text = "None is"
text += "just nothing"
else:
text += "meaningful"
print(text)