TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: do you use the 'format code' feature of your IDE?

3 点作者 ziodave大约 11 年前
I am using PhpStorm and sometimes I hit the &#x27;Reformat Code&#x27; command. The outcome is good, but eventually I am writing some WordPress-related code and it doesn&#x27;t comply with the formatting guidelines of WordPress [1].<p>Do you use any formatting feature of your IDE, or do you format the code manually?<p>[1] http:&#x2F;&#x2F;make.wordpress.org&#x2F;core&#x2F;handbook&#x2F;coding-standards&#x2F;

1 comment

Artemis2大约 11 年前
I&#x27;m currently programming in Go, and Google provides very strict constrains for its syntax (e.g. no braces on a new line, etc.). To take this a step further, my editors automatically runs the go fmt tool on saved files, which formats the code according to the guidelines for the style. That means indenting with tabs, aligning with spaces...<p>That&#x27;s very pleasing that a language in an early stage has this kind of tools, because if I need to copy a code snippet from the web, it will almost everytime be formatted exactly like my own code. Same when I work with somebody else: no discussion over code formatting.
评论 #7654475 未加载