Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Ace 中隐藏垂直标尺?
垂直标尺是指编辑器中 80 个字符的垂直线,这有助于将线条保持在一定长度以下。
如果可能的话,我想为我的用户提供启用/禁用它的选项
找到了,你需要使用这个:
editor.setShowPrintMargin(false);
https://ace.c9.io/api/editor.html#Editor.setShowPrintMargin