输入分号或大括号时,Eclipse中的自动格式代码 [英] Autoformat code in Eclipse when entering semicolon or brace
本文介绍了输入分号或大括号时,Eclipse中的自动格式代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
来自Visual Studio,当我输入分号或关闭大括号时,我习惯于将自己的代码自动格式化。可以在JavaScript编辑器中对Eclipse做同样的事情吗?
Coming from Visual Studio, I'm used to getting my code auto-formatted whenever I enter a semicolon or a closing curly brace. Is it possible to do the same with Eclipse in the JavaScript editor?
推荐答案
使用 Ctrl kbd> A 选择你的代码,然后按 Ctrl + 我,这将使代码缩进适用于eclipse kepler中的JavaScript代码。
Use Ctrl+A to select your code, then press Ctrl+i, this will make code indentation properly for javascript code in eclipse kepler.
这篇关于输入分号或大括号时,Eclipse中的自动格式代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文