請問有程式碼自動排版的功能嗎?

4,456 views
Skip to first unread message

Chun Fan Ke

unread,
Sep 17, 2014, 8:53:57 PM9/17/14
to pyth...@googlegroups.com
大家:
請問 Python 的開發工具中,
有沒有哪一套有程式碼自動排版的功能呢?
就像 Visual Studio 的 Ctrl + K & Ctrl + D ( 快速鍵 ) 一樣的功能。

我目前是用 PyCharm,但是都找不到這個功能,
請問 PyCharm 有這個功能嗎?
謝謝~~

He-chien Tsai

unread,
Oct 30, 2014, 5:45:36 AM10/30/14
to pyth...@googlegroups.com
Python本身就需要排版才能執行吧
怎會需要額外排版

Chun Fan Ke於 2014年9月18日星期四UTC+8上午8時53分57秒寫道:

Keith Yang

unread,
Oct 30, 2014, 5:52:21 AM10/30/14
to He-chien Tsai, pyth...@googlegroups.com
用搜尋引撆搜 “pycharm auto indent” 應該有很多結果,例如第一筆資料。


或著試著翻一下其它筆資料應該不難找到解答。

因為 Python 本來就需要縮對排,通常會用到 這個是 copy & paste 的時候。


-- 
# Keith “)

於 October 30, 2014 於 5:45:39 PM, He-chien Tsai (depo...@gmail.com) 寫:

--
這是 Google 網上論壇針對「python.tw」群組發送的訂閱通知郵件。
如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 pythontw+u...@googlegroups.com
如要在這個群組張貼留言,請傳送電子郵件到 pyth...@googlegroups.com
請前往以下網址造訪這個群組:http://groups.google.com/group/pythontw
如需更多選項,請前往:https://groups.google.com/d/optout

RJ Hsiao

unread,
Oct 30, 2014, 5:53:21 AM10/30/14
to pyth...@googlegroups.com
Python 本身就是依靠縮排決定 scope 的語言...
所以IDE不應該要能幫你決定縮排才是


With best regards,
Wei-Jie Hsiao (RJ)
http://about.me/RJ_Hsiao

鄭憲錡

unread,
Jan 19, 2017, 10:37:24 AM1/19/17
to python.tw
PyCharm

mac : control + option + I

Chun Fan Ke於 2014年9月18日星期四 UTC+8上午8時53分57秒寫道:
Reply all
Reply to author
Forward
0 new messages