RStudio 中的永久代码折叠 [英] Permanent Code Folding in RStudio

查看:124
本文介绍了RStudio 中的永久代码折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图确保在保存文件时,在 Shiny 中的 RStudio 中折叠的代码(通过 Alt+L)保持原位.目前,每次保存文件时,折叠都会消失.有人知道如何使折叠永久且独立于保存文件吗?供参考:我在 Windows 上使用 RStudio 0.99.441 版.

I am trying to make sure that code collapsing in RStudio (through Alt+L) in a Shiny remains in place when I save the file. At present, every time I save my file, the folding disappears. Does anybody know how to make folding permanent and independent of saving the file? For reference: I am using version 0.99.441 of RStudio on Windows.

推荐答案

更新,8.17.15:我被告知这已在今天的版本中修复.检查一下:https://dailies.rstudio.com

Update, 8.17.15: I was informed that this is fixed in today's build. Check it out: https://dailies.rstudio.com

................

.................

感谢您提出这个问题.几个月来,我一直在经历同样令人不安的行为.我在 Windows 7 操作系统上使用版本 0.99.467.

Thanks for bringing this up. I have been experiencing this same disturbing behaviour for a couple of months now. I'm using version 0.99.467 on Windows 7 OS.

我已将此行为通知 RStudio 团队,询问是否可以修复或关闭它(如果这是某种功能).填写另一个请求可能是值得的(其他人经历过这个):https://support.rstudio.com/hc/en-us/requests/new

I have notified RStudio team of this behaviour, asking if it can be fixed or turned off (if this is some sort of feature). It may be worthwhile to fill out another request (by others experiencing this): https://support.rstudio.com/hc/en-us/requests/new

坦率地说,我认为这是一个错误,而不是一个功能.RStudio 网站的代码折叠和部分页面上没有解释这种行为:https://support.rstudio.com/hc/en-us/articles/200484568-Code-Folding-and-Sections

Frankly, I think this is a bug, not a feature. No such behavior is explained on Code Folding and Sections page of RStudio website: https://support.rstudio.com/hc/en-us/articles/200484568-Code-Folding-and-Sections

这篇关于RStudio 中的永久代码折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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