Skip to content

Commit

Permalink
Enable auto save when editor idle or loses focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongmassey committed Jul 23, 2024
1 parent 6e82b58 commit 6e46894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ set_rstudio_pref() {
#set RStudio working directory
set_rstudio_pref "initial_working_directory" "\"$1\""
#turn on RStudio autosave
set_rstudio_pref "auto_save_on_blur" "true"
set_rstudio_pref "auto_save_on_idle" "\"commit\""
#download and extract latest ehrql source
wget https://github.com/opensafely-core/ehrql/archive/main.zip -P .devcontainer
unzip -o .devcontainer/main.zip -d .devcontainer/
Expand Down

0 comments on commit 6e46894

Please sign in to comment.