From 4ed86c38da460d58665f35b134d19c349fa166d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Farias?= Date: Sat, 20 Jun 2020 17:27:01 +0200 Subject: [PATCH] Adding entry for how to run VS Code with sudo permissions - EN and PT-BR (#4119) --- pages.pt_BR/common/code.md | 4 ++++ pages/common/code.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pages.pt_BR/common/code.md b/pages.pt_BR/common/code.md index a823dc4ea..30d12daed 100644 --- a/pages.pt_BR/common/code.md +++ b/pages.pt_BR/common/code.md @@ -22,3 +22,7 @@ - Comparar o conteúdo de dois arquivos no VS Code: `code -d {{arquivo1}} {{arquivo2}}` + +- Iniciar o VS Code com permissão de super usuário (sudo): + +`sudo code {{path/to/file_or_directory}} --user-data-dir` diff --git a/pages/common/code.md b/pages/common/code.md index cc3e72094..129252f92 100644 --- a/pages/common/code.md +++ b/pages/common/code.md @@ -22,3 +22,7 @@ - Compare two files in VS Code: `code -d {{file1}} {{file2}}` + +- Open VS Code with super user (sudo) permissions: + +`sudo code {{path/to/file_or_directory}} --user-data-dir`