有没有办法使 Netbeans 中的代码文本在屏幕上居中?
我正在尝试模仿之前使用 emacs 和 Netbeans 进行的暗室设置。 我几乎一直处于 Alt-Shift-输入全屏模式,然后使用 Shift-Escape 最大化代码编辑器屏幕。 但是,这会导致所有代码文本编辑器块以及行号都与屏幕左侧对齐。 即使通过第三方插件,是否有可能将所有块居中到屏幕中心?
Netbeans的版本是6.7m3
I'm trying to emulate my prior darkroom setup I've had with emacs, but with Netbeans. I'm pretty much all the time in alt-shift-enter full screen mode, and then shift-escape to maximize the code editor screen. However, this results in all of the code text editor block, along with line numbers, to be aligned to the left of the screen. Is it possible, even via third party plugins, to center all of the block to the center of the screen?
version of netbeans is 6.7m3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是一个错误,请尝试将其报告给 netbeans。
This might be a bug, try reporting it to netbeans.
已经有一段时间了,但似乎仍然没有专门的方法来做到这一点(在我的例子中是 NB 11.2)。 这是适合我的解决方法:
创建或打开一个空文件,然后将文件的编辑器容器从其他打开的文件选项卡拖到窗口的左侧,这样您就可以并排放置两个文档。 现在将它们之间的分隔符向左拖动以使右侧文档的代码居中。 瞧。
在全屏模式(Alt + Shift + Enter)下效果很好,但在仅编辑器模式(Ctrl + Shift + Enter)下不起作用,该模式只会显示一个编辑器。
It's been some time, but there still doesn't seem to be a dedicated way to do that (in NB 11.2 in my case). Here's a workaround that works for me:
Create or open an empty file and drag the file's editor container away from the other open file tabs to the left side of the window so you have two documents side by side. Now drag the separator between them to the left to center the code of the right document. Voilà.
Works great in fullscreen mode (Alt + Shift + Enter), but doesn't work in editor-only mode (Ctrl + Shift + Enter) which will only show one editor.