Setting Up Positron
Abstract
Guidance on setting up a fresh Positron installation.
Introduction
This is one of a series of posts where I document software configurations for personal reference. This post documents the configurations for Positron.
Extensions
shellcheck:- In shell:
sudo apt install shellcheck. - In positron:
ctrl + p->ext install timonwong.shellcheck.
- In shell:
shell-format:- Download shfmt executable binary, rename it as
shfmt, save it to/usr/local/bin/, and make it executable. - In positron:
ctrl + p->ext install foxundermoon.shell-format.
- Download shfmt executable binary, rename it as
pastum:- In positron:
ctrl + p->ext install atsyplenkov.pastum
- In positron:
Settings
Go to “Preferences” - “Settings” and change the following settings:
- Text Editor
- Tab Size:
2 - Word Wrap:
"on" - Find
- Auto Find In Selection:
"multiline"
- Auto Find In Selection:
- Font
- Font Family:
'Ubuntu Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'
- Font Family:
- Suggestion
- Accept Suggestion On Enter:
"off"
- Accept Suggestion On Enter:
- Files
- Auto Guess Encoding:
true
- Auto Guess Encoding:
- Tab Size:
- Workbench
- Color Theme:
"Positron Dark"
- Color Theme:
- Features
- Extensions
- Auto Check Updates:
false - Auto Update:
None - Ignore Recommendations:
true
- Auto Check Updates:
- Terminal
- Integrated: Cursor Blinking:
true - Integrated: Enable Visual Bell:
true - Integrated: Scrollback:
10000
- Integrated: Cursor Blinking:
- Extensions
- Security
- Workspace
- Trust: Untrusted Files:
"open"
- Trust: Untrusted Files:
- Workspace
- Extensions:
- shell-format configuration
- Shellformat: Path:
"/usr/local/bin/shfmt"
- Shellformat: Path:
- shell-format configuration
Keybindings
Go to “Preferences” - “Keyboard Shortcuts” and change the following shorcuts:
- Reindent Selected Lines:
Ctrl + KCtrl + IwheneditorTextFocus && !editorReadonly(remove conflicting keybinding for “Show or Focus Hover”)
Useful shortcuts that use default:
- Change Language Mode:
Ctrl + KM - Console: Execute Code:
Ctrl + Enter - File: New Untitled Text File:
Ctrl + N - File: Open Folder:
Ctrl + KCtrl + O - Format Selection:
Ctrl + KCtrl + F - Quarto: Insert Code Cell:
Ctrl + Shift + I - Show All Commands:
Ctrl + Shift + P - Toggle Line Comment:
Ctrl + / - View: Split Editor:
Ctrl + \