Magrittr pipes trigger indent on newline
See original GitHub issueNot sure if this is the right place for this request, please delete if not !
Would it be possible to get magrittr’s pipes %>% to be treated akin to brackets where an automatic indent happens if you press enter on a line whose last symbol is the pipes?
i.e. having
iris %>% mutate(...)
and pressing enter  after the %>% but before the mutate(...)  would result in
iris %>%
    mutate(...)
At the moment when I do this it just comes out as:
iris %>%
mutate(...)
Issue Analytics
- State:
 - Created 3 years ago
 - Reactions:2
 - Comments:19 (7 by maintainers)
 
Top Results From Across the Web
Magrittr pipes trigger indent on newline · Issue #321 - GitHub
Would it be possible to get magrittr's pipes %>% to be treated akin to brackets where an automatic indent happens if you press...
Read more >Pipe - magrittr
Pipe an object forward into a function or call expression. ... It is possible to force evaluation of rhs before the piping of...
Read more >How to implement the piping operator %>% in ESS mode?
I need to implement this so that it will print that operator %>% and then jumps to a new indented line.
Read more >How can I make vim indent dplyr code with the pipe ...
I'm using the Vim-R-Plugin, the related issue is here. r · vim · indentation · dplyr · magrittr.
Read more >vscode-R - Bountysource
Would it be possible to get magrittr's pipes %>% to be treated akin to brackets where an automatic indent happens if you press...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@gowerc https://github.com/REditorSupport/languageserver/pull/209 implements on-type-formatting on user input at expression-level based on a backward parsing strategy. With
editor.formatOnType = trueand vscode-r-lsp and languageserver installed, the formatting is exactly what you want.I’m curious about how the text edits are handled if
editor.formatOnTypeis enabled and languageserver also performs on-type-formatting and indention, and vscode-R also makes some indention?