使用纵向宽屏显示器进行编码是否更有效?
在不久的将来,我的开发设置将升级,部分交易将是双显示器(耶!)
至少其中一台显示器,可能是两台显示器,将是宽屏的。
我听说开发人员在纵向模式下使用第二台显示器,尤其是宽屏显示器。 它允许屏幕上显示更多行(尽管更窄),并且运行起来有点像有一长页代码。
有人使用过这个并且认为它更有效吗?
In the very near future my development setup will be upgraded and part of the deal will be dual monitors (yay!)
At least one of the monitors, possibly both, will be widescreen.
I've heard of developers using a second monitor, especially a widescreen monitor, in portrait mode. It allows for many more lines on the screen (albeit narrower) and runs a bit like having a long page of code.
Does anyone out there use this and think it's more effective?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(17)
我想说,如果显示器足够大,则不需要纵向模式(24 英寸或更高)来编写代码。
如果显示器小于该尺寸,则最好使用纵向模式。
理想情况下,您将拥有一个 30 英寸显示器(2560 x 1600) 作为宽屏来处理您的代码,并在附近舒适地打开实用程序,并在附近使用第二个较小的显示器来预览结果(我在这里专门谈论网络编码,但它可能也适用于大多数其他编码 -屏幕尺寸与目标受众的屏幕尺寸相同)。
30 英寸屏幕的价格现在确实下降了,因此可能值得上涨。24 英寸屏幕确实具有在默认字体大小下显示更大文本的优势。 除非您升级到 14 磅,否则 30 英寸显示器上的文本可能会有点繁琐。
祝您好运。
I would say if the monitor is large enough you don't need portrait mode (24" and higher) for writing code.
If the monitor is smaller than that, then portrait mode is preferable.
Ideally what you would have is a single 30" (2560 x 1600) as widescreen to work on your code along with utilities comfortably open nearby and a second smaller monitor nearby to preview the results (I am speaking about web coding specifically here but it would probably apply to most other coding as well - a screen the size of your target audience's screens).
The 30" screens have really come down in price now so it's probably worth the jump up. A 24" screen does have the advantage of significantly larger text at default font sizes. The text on 30" monitors can get to be a bit of grind unless you move up to 14pt.
Good luck.
我目前有 2 台 19 英寸显示器。一台保持横向模式,一台保持纵向模式。我发现在纵向屏幕上处理文档或阅读长网页更容易。我也使用此设置进行编码,发现它确实有帮助,但这是一个习得的习惯,哈哈。
I have 2 19" monitors currently. One I keep in landscape and one I keep in portrait mode. I find that working on documentation or reading long web pages is easier on the portrait screen. I have used this setup for coding also and find that it does help, however it was a learned habit. lol
实际上,我有 3 个纵向模式的宽屏显示器,是的,这是一种很棒的工作方式。 滚动次数少了很多,您可以一次将所有调试/输出/参考窗口显示在屏幕上。
使用两台显示器的问题在于,您通常会在一台主显示器上工作并在另一台显示器上有输出(或其他显示器)。 如果您有两个显示器,请将其设置为使主显示器位于您的正前方,而另一个(不常用的)显示器位于一侧。 我发现这是使用双显示器设置的最佳方式,因为它可以减少 RSI 因观看特定屏幕而永久扭曲的情况。
此外,还有 一些可提供虚拟屏幕分割的程序我认为它们对于大/宽屏显示器设置非常有用。
[编辑] ..是的,您应该编写足够短的函数以适合单个页面,但根据我的经验,能够随时查看更多函数通常可以使开发变得更容易:-)
[edit2] 在调试编译错误时,在宽屏显示器上以纵向方式运行 Visual-Studio 式 IDE 的效果非常好,因为您有更多可用空间来同时查看代码和错误。 我想你可能会说,如果你足够定期地编译,你不应该一次看到那么多错误? ...但是谁会这样编码呢? ;-)
I actually have 3 widescreen monitors in portrait mode and yes, it's a fantastic way to work. There's so much less scrolling around and you can fit all your debug / output / reference windows on screen at once.
The problem with using two monitors is that you'll generally be working on one main one and have output (or whatever on another). If you do have two, set it up so that your primary monitor is directly in front of you and the other (less frequently used) one is off to one side. I find that to be the best way to use a dual-monitor set up as it reduces RSI from being permanently twisted to look at a particular screen.
Additionally, there are some programs available to provide virtual screen splits which I've fund very useful for large/widescreen monitor setups.
[edit] ..and yes, you should write functions short enough to fit on a single page, but being able to see more functions at any one time can often make development easier in my experience :-)
[edit2] Running Visual-Studio-esque IDEs in portrait on a widescreen monitor is fantastic when it comes to debugging compile errors as you have more useable space to see code and errors at the same time. I suppose you could argue that if you compile regularly enough though, you shouldn't see that many errors at one time? ...but who codes like that? ;-)
既然你不应该编写比屏幕还长的函数,那么让屏幕变得更长就有点作弊了,不是吗? ;)
无论如何,我发现纵向模式在编码时并不是更好,只有在纵向模式下使用我的旧 17 英寸宽屏才能更好地查看/编辑文档。在横向模式下有两个大屏幕,您可以在查看时在屏幕上放置两页文档,并且在 IDE 文本编辑器的两侧打开许多工具窗口,因此,纵向模式并不更好,除非您有四个工具窗口来组成一个非常大的屏幕(有一张这样的设置的照片)。微软博客,但我不记得在哪里)。
不过,有些应用程序纵向仍然更好,例如,如果您必须以高分辨率显示文档,或者如果您有一些监视器(如网络监视器)正在运行并且想同时查看更多线路。
Since you shouldn't write functions that are longer than a screen, making the screen much longer is a little bit of cheating, isn't it? ;)
Anyway, I found portrait mode not really better when coding, and only with my old 17" widescreen in portrait mode was viewing / editing documents better. With two large screens in landscape mode, You can put two pages on a screen when viewing documents, and have many tool windows open at both sides of the IDE's text editor. So no, portrait mode is not better, unless you have four of them to make up a really large screen (there was a photo of such a setup on a Microsoft blog, but I don't remember where).
There are some applications where portrait is still better, though, e.g. if you have to show a document in large resolution, or if you have some monitor (as in network monitor) running and want to see more lines at once.
我无法想象这将如何提高生产力。 在我看来,向上/向下滚动总是比向左/向右滚动更容易。
I can't imagine how that would speed up productivity. In my opinion, it is always easier to scroll up/down than left/right.
这取决于您使用的 IDE(如果有)。
Microsoft Visual Studio 喜欢通过其“工具箱”和“解决方案资源管理器”占用显示器的大量宽度,因此我发现它在横向显示器上效果更好。 由于它不允许您取消停靠编辑器窗口,因此您甚至无法将代码编辑器拖动到处于纵向模式的第二个显示器。
还要考虑您的客户最有可能如何设置显示器。 您可能希望使用相同的设置编写任何 UI 代码,以便您了解应用程序的使用方式。
It depends on which IDE you use, if any.
Microsoft Visual Studio likes to take up a lot of the width of the monitor with its “Toolbox” and “Solution Explorer”, so I find it works better on a landscape monitor. As it will not let you undock an editor window, you could not even drag a code editor to a second monitor that was in portrait mode.
Also consider how your customers are most likely to have their monitors set up. You may wish to write any UI code with the same setup, so you get a feel for what the application will be like to use.
取决于你的显示器有多大。 我们在大显示器的侧面有 1 个 28 英寸横向显示器和 2 个 24 英寸纵向显示器。
非常适合结对编程!
Depends how big your monitor is. We have 1 28" monitor in landscape and 2 24" monitors in portrait which flank the big monitor.
Works great for pair-programming!
在工作中,我以纵向模式运行主显示器(次要的是笔记本电脑屏幕)。 我很喜欢。 我已经习惯于一次看到更多代码。 我发现它根本不鼓励更长的方法。 有时,我会遇到有点太宽的代码,因为 IDE 侧边栏有点限制它,但我主要使用 Eclipse(Rational Application Developer,但基于 Eclipse),因此快速双击会最大化代码窗口,这样就可以了。很有用。 再双击一次,我的侧边栏又回来了。
我还发现它对我的电子邮件非常有用。
我强烈推荐它。
At work, I run my primary monitor (secondary is the laptop screen), in portrait mode. I really like it. I've become spoiled to seeing more code at once. I don't find that it encourages longer methods at all. Occasionally, I run across code that is a bit too wide since the IDE sidebars cramp it a bit, but I largely use Eclipse (Rational Application Developer, but Eclipse-based), so s quick double-click maximizes the code window, and it's very useful. Another double-click and I have my sidebars back.
I also find it a very useful orientation for my email.
I recommend it highly.
纵向模式宽屏显示器非常适合编辑代码,谢谢。 然而,某些显示器的一维可视角度较差,通常是垂直的,但在纵向模式下会变成水平的。 如果一切未正确对齐,这可能会使颜色变差或无法使用。
Portrait mode widescreen monitors work very nicely for edting code, thank you. However, some monitors have poor viewing angles on one dimension, which would usually be vertical but becomes horizontal in portrait mode. This can make the colours bad or unusable if everything isn't aligned correctly.
我从未尝试过,但我想它会运作得很好。 我个人喜欢保持代码行相当短,而宽屏幕往往会给我更少的代码行,所以我会尝试一下。
这一切都取决于个人喜好,然而,最有效率、最适合你的才是正确的选择。
I have never given it a try but I would imagine it would work pretty well. I personally like to keep my lines fairly short, and wide screens tend to give me fewer lines of code, so I would give it a try.
It all comes down to personal preference however, what ever allows you to be the most productive and works best for you is the way to go.
对我来说根本没有效果。 我使用 IDE,因此在横向模式下,我有侧边栏来导航代码、导航项目等。
For me it's not effective at all. I use IDEs, so in landscape mode I have sidebars to navigate code, navigate project etc.
这并不愚蠢,而是一个观点问题。 纵向宽屏非常适合编写代码,代码宽度从来都不是真正的问题,并且能够在屏幕上看到更多行代码总是很好。
将宽屏置于纵向的另一个原因是它与其他显示器的高度相匹配,例如,30 英寸宽屏与纵向 22 英寸宽屏的高度接近相同。
It's not silly but a matter of opinion. A widescreen in portrait is very nice for writing code, code width has never really been an issue, and being able to see more line of code on the screen is always nice.
The other reason to put a widescreen in portrait is so it matches the height of your other monitor, for example a 30" widescreen next to a 22" widescreen in portrait have close to the same height.
这一切都取决于您的偏好。
我的家庭办公室只有一台大显示器。
It all comes down to your preference.
I just have one big monitor at my home office.
我试过一次。 我不喜欢它。 我通常有一个 IDE,而且 IDE 非常适合宽屏。 如果您可以看到右侧的函数列表、左侧的文件列表等,那么跳转会更快。
另外,我会尽量保持函数较小,所以这通常不是问题(我有双 24")。如果你的功能相当小,而且你有宽屏,你可以并排显示两个文件,这通常更有用,一些编辑器允许你分割窗口并滚动到同一文件的两个不同部分,这也非常有用。比屏幕上有 100 多行要好得多。根据我的设置,编辑器上每个屏幕有 60 行,如果我拆分编辑器,我可以看到 120 行。如果我在另一台显示器上再次这样做,我可以看到 240 行。这是相当多的代码,通常只对其中非常不同的部分有用。
I tried it once. I didn't like it. I usually have an IDE and IDEs are perfect for widescreen. It's faster to jump around if you can see your function list on the right, file list on the left, etc.
Also, I try to keep my functions small so this usually isn't a problem (I have dual 24"). If your functions are reasonably small, and you have widescreen, you can show two files side by side which is often more useful. Some editors allow you to split the window and scroll to two different parts of the same file. This is also very useful is far better than having 100+ lines on the screen. With my settings, I have 60 lines per screen on an editor. If I split the editor, I can see 120. If I do it again on the other monitor, I can see 240. That's quite a bit of code and generally only useful for very different parts of it.
如果您主要处理文本(就像大多数程序员或其他技术人员所做的那样),甚至文档,那么肖像模式更有价值。 事实上,显示器的总体趋势完全是错误的:宽高比正在将横向显示器压缩到邮件槽中,以更好地适应电影的格式。 就我个人而言,我从未在我的电脑(笔记本电脑或台式机)上看过电影,而且我现在也不打算开始 - 这就是我拥有电视的目的!
事实上,垂直像素是计算中最有价值的资产 - 尽一切努力获得更多垂直像素 - 你不会后悔花了钱! 我什至不会购买垂直像素低于 1024-1080 的笔记本电脑,因为这是以可读分辨率显示整页 PDF 所需的最小值,并且(更多)更好。 (由于 PDF 占据了当今在线文档/手册的很大一部分,因此这是一个非常大的问题。)您应该只在拥有足够的垂直像素之后才考虑宽度。
我真正想要的是一台带有纵向屏幕的 15.4 英寸或 16 英寸笔记本电脑 - 这些应该仍然足够宽,可以将全尺寸键盘装入底座 - FlyBook式枢轴臂会很好,但不是必需的。
If you're working mostly with text (as most programmers or other technical folks do), or even documents, then portait mode is much more valuable. In fact, the general trend in displays is all the wrong direction: aspect ratios are squishing landscape displays to a mail slot to better fit the format of movies. Personally, I have never watched a movie on my computers (laptop or desktop), and I'm not about to start now - that's what I have a TV for!
In reality, vertical pixels are the most valuable asset in computing - do whatever you can to get more of them - you won't be sorry you spent the money! I won't even buy a laptop with less than 1024-1080 vertical pixels, since that's the minumum required to display a full page PDF at a readable resolution, and (much) more is better. (Since PDFs make up a large portion of today's online documentation/manuals, that's a very big concern.) You should only think about width after you've got enough vertical pixels.
What I really want is a 15.4" or 16" laptop with a portrait screen - these should still be wide enough to package a full-size keyboard into the base - a FlyBook-style pivot arm would be nice, but isn't required.
我发现先将相关功能打印在纸上比直接从屏幕上理解它们更容易理解它们的意图,而且永远不会失败,为什么? 因为您可以轻松地一眼查看多行代码,无需不停地滚动。
与面向纵向模式的显示器相同,您可以轻松理解多个相关功能(无论是重构还是其他功能)的意图。 但不要让纵向屏幕成为编写多行函数的借口。
使用纵向屏幕在 stackoverflow 上写这篇文章 :-)
我一眼就能轻松看到很多帖子 :-)
I found understanding the intent of related functions are easier when you print them first on paper than understanding them directly from screen, never fails, why? Because you can easily review many lines of code at one glance, no need for incessant scrolling.
The same thing with monitor oriented in portrait mode, you can easily understand the intent of multiple related functions, re-factored or otherwise. But don't let having portrait screen be an excuse to write a function with many lines.
Writing this on stackoverflow using portrait screen :-)
I can easily see many posts at one glance :-)
如果您正在处理打印材料,是的,至于源代码,为什么不全屏显示 IDE 并关闭不需要的任务窗格呢?
我发现肖像只有在我在网站上工作时才有用,能够立即看到整个页面会有所帮助。
If you are working with print material, yes, as for source, why not full screen your IDE and close the task panes you do not need?
I find portrait is only useful to me if I'm working on a web site, being able to see the entire page at once helps.