Skip to content

Commit 35fc409

Browse files
add vs code integration
1 parent 027d5b1 commit 35fc409

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
* Break the line between `%>%` and `{` inside and outside function calls (#825).
1212

13+
* Add language server to the integrations (#835).
14+
1315
# styler 1.5.1
1416

1517
## Alignment detection

vignettes/third-party-integrations.Rmd

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,24 @@ styler functionality is available in other tools, most notably
2828
is used. The most convenient way to set this up is via
2929
[`usethis::use_tidy_github_actions()`](https://usethis.r-lib.org/reference/tidyverse.html).
3030

31-
* in `reprex::reprex(..., style = TRUE)` to prettify reprex code before
32-
printing. To permanently use `style = TRUE` without specifying it every time,
33-
you can add the following line to your `.Rprofile` (via
34-
`usethis::edit_r_profile()`): `options(reprex.styler = TRUE)`.
35-
3631
* as a formatter for RMarkdown without modifying the source. This feature is
3732
implemented as a code chunk option in knitr. use `tidy = "styler"` in the
3833
header of a code chunks (e.g.` ```{r name-of-the-chunk, tidy = "styler"} `),
3934
or `knitr::opts_chunk$set(tidy = "styler")` at the top of your RMarkdown
4035
script.
4136

37+
* via the [R language server](https://github.com/REditorSupport/languageserver)
38+
to format your code in VS Code, atom and others.
39+
4240
* As a fixer to the [ale
4341
Plug-in](https://github.com/dense-analysis/ale/pull/2401) for VIM.
4442

43+
* in `reprex::reprex(..., style = TRUE)` to prettify reprex code before
44+
printing. To permanently use `style = TRUE` without specifying it every time,
45+
you can add the following line to your `.Rprofile` (via
46+
`usethis::edit_r_profile()`): `options(reprex.styler = TRUE)`.
47+
48+
4549
* in the *format-all* command for Emacs in
4650
[emacs-format-all-the-code](https://github.com/lassik/emacs-format-all-the-code).
4751

0 commit comments

Comments
 (0)