簡體   English   中英

如何在 Pycharm 中注釋一行?

[英]How to comment a line in Pycharm?

在 Pycharm 中評論文本的鍵盤快捷鍵是什么?

當我使用ctrl + /時,我得到:

pycharm截圖

  1. Go 到您的 PyCharm 設置( ctrl + alt + s )並找到左側邊欄上的Keymap

  2. 使用右上角的搜索欄查找comment ,並查看Comment with Line Comment的快捷方式。

  3. 將其更改為您想要的任何內容,看看它是否有效。

參考。

行注釋是

#comment here

多行注釋是

/* comment
   here
*/

它正在折疊和擴展代碼塊。 嘗試 // 單行注釋或 /* 多行注釋 */

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM