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

查看:47
本文介绍了如何在 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,然后寻找操作名为重新缩进当前行或选择"并设置您想要的任何快捷方式.

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天全站免登陆