dot-set_vsc_setting: Set VSC workspace settings

.set_vsc_settingR Documentation

Set VSC workspace settings

Description

Set VSC workspace settings

Usage

.set_vsc_setting(
  nm,
  val_or_fn,
  path_to_settings = here::here(".vscode/settings.json"),
  update = TRUE,
  create = TRUE,
  ...
)

Arguments

nm

character vector. Elements in JSON file to adjust.

val_or_fn

what to change the element to. If anything other than a function, then the list element simply changes to this. If a function, then it is the function to apply to matching elements. For functions passed to elements with pre-existing values, the first argument takes that pre-existing value.

update

logical. If TRUE, then elements whose names match nm are changed. Default is TRUE.

create

logical. If TRUE, then if there is no pre-existing element with a given element of nm, then an element with that name is added. Default is TRUE.

...

Passed on to fn.

character

file. Path to the VSC settings file to edit. Default is here::here(".vscode/settings.json").


MiguelRodo/alwaysloaded documentation built on Nov. 7, 2023, 5:18 p.m.