![](/img/trans.png)
[英]Correct Cursor indentation on the new line after the semicolon in Javascript
[英]How to get correct indentation for new line after “if”,“try”, etc… blocks on Intellij Idea?
在使用Eclipse多年之后,我開始使用Idea。 現在,我發現Idea的某些功能基本上不存在。 其中之一是這個。 我寫了一個if
或try
和一個大括號{
然后我按Enter
,新行帶有與if
相同的縮進:
// some code...
if (someBoolean) {
// <- cursor comes here
// <- not here
}
我如何才能做到這一點正確,並在不開始編寫額外tab
情況下寫新行?
編輯:這發生在JavaScript文件上。 使用Java時沒問題。 我檢查了注釋中提到的“ JavaScript支持”是否沒有可用的插件。
到目前為止,還沒有JavaScript支持插件。 我無法通過瀏覽找到它。
該矩陣說明了這種情況: http : //jetbrains.com/idea/features/editions_comparison_matrix.html
社區版不支持JavaScript。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.