Auto formatting #1203
JacobBumgarner
started this conversation in
Ideas
Auto formatting
#1203
Replies: 2 comments 4 replies
-
|
You could bind shortcut keys to the following in "Keyboard shortcuts": {
"key": "shift+alt+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "cmd+k cmd+f",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does vscode-R have some functionality that enables autoformatting of code with a shortcut?
I'm imagining something similar to what was described in this post:
https://stackoverflow.com/a/34856235/15481857
Beta Was this translation helpful? Give feedback.
All reactions