如何让RStudio代码补全优先于GitHub Copilot(Tab键触发)
RStudio原生代码补全与GitHub Copilot自动建议冲突问题咨询
我正在使用RStudio并已激活GitHub Copilot,希望自动启用Copilot补全(无需快捷键触发),但始终遇到与RStudio原生代码补全的冲突问题。
示例情况

在上述示例中,我执行一个简单命令,希望通过代码补全选择col_names = ,但由于Copilot给出了建议,按下Tab键时总是会插入Copilot的建议内容(此处为guess_max = 100000)。这导致我需要删除Copilot的错误建议,重新回到代码补全界面,还得赶在Copilot再次给出建议前选中正确的补全选项(我知道可以延长Copilot给出建议的间隔时间)。
请问是否存在相关设置选项,可在RStudio代码补全显示时禁用Copilot的自动建议?
会话信息
R version 4.3.0 (2023-04-21 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 11 x64 (build 26100) Matrix products: default locale: [1] LC_COLLATE=English_Austria.utf8 LC_CTYPE=English_Austria.utf8 LC_MONETARY=English_Austria.utf8 LC_NUMERIC=C [5] LC_TIME=English_Austria.utf8 time zone: Europe/Vienna tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] MetBrewer_0.2.0 cowplot_1.1.1 extrafont_0.19 readxl_1.4.3 janitor_2.2.0 broom_1.0.5 here_1.0.1 lubridate_1.9.3 forcats_1.0.0 [10] stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_3.5.1 tidyverse_2.0.0 conflicted_1.2.0 loaded via a namespace (and not attached): [1] utf8_1.2.4 generics_0.1.3 stringi_1.8.4 extrafontdb_1.0 hms_1.1.3 magrittr_2.0.3 grid_4.3.0 timechange_0.3.0 fastmap_1.1.1 [10] cellranger_1.1.0 rprojroot_2.0.4 backports_1.5.0 fansi_1.0.6 scales_1.3.0 cli_3.6.3 crayon_1.5.3 rlang_1.1.4 bit64_4.5.2 [19] munsell_0.5.1 withr_3.0.2 cachem_1.0.8 parallel_4.3.0 tools_4.3.0 tzdb_0.4.0 memoise_2.0.1 colorspace_2.1-1 vctrs_0.6.5 [28] R6_2.5.1 lifecycle_1.0.4 snakecase_0.11.0 bit_4.5.0 vroom_1.6.5 pkgconfig_2.0.3 pillar_1.9.0 gtable_0.3.6 rsconnect_1.1.0 [37] glue_1.8.0 tidyselect_1.2.1 rstudioapi_0.14 Rttf2pt1_1.3.8 compiler_4.3.0
当前Copilot设置

内容的提问来源于stack exchange,提问作者Moritz Schwarz
相关产品推荐
相关产品推荐

