如何在Netbeans中自动添加? [英] How do I autoindent in Netbeans?

查看:124
本文介绍了如何在Netbeans中自动添加?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中,您可以在任意行单击 Ctrl + I ,它会根据您在中选择的缩进方案自动缩进行或行组。设置。

In eclipse you can click Ctrl+I at any line, and it'll automatically indent the line or group of lines according to the indentation scheme you chose in the settings.

我真的在Netbeans中缺少此功能。有没有相同的功能?

I'm really missing this feature in Netbeans. Is there any equivalent feature?

我知道 Alt + Shift + F 但这还不够好。我想缩进一组行,而不是所有文件。

I'm aware of Alt+Shift+F but it's not good enough. I want to indent a group of lines, and not all the file.

推荐答案

打开工具 - > 选项 - > 键映射,然后查找名为重新缩进当前行或选择的操作并设置您想要的任何快捷方式。

Open Tools -> Options -> Keymap, then look for the action called "Re-indent current line or selection" and set whatever shortcut you want.

这篇关于如何在Netbeans中自动添加?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆