I am using Visual studio 2017 , I have some code region which I wanted to hide from others , or How can I protect the entire project as password protected .
How to password Protect Visual studio Code
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

NitinRank #140 · 16.1K reputationPosted Nov 17, 2022, 5:37 AM EST
Mark tabor
Check this article,
https://jamesbachini.com/how-to-encrypt-text-in-visual-studio-code-vscode/#:~:text=Go%20to%20%E2%80%9CFile%20%3E%20Preferences%20%3E,into%20an%20encrypted%20text%20string.
NitinRank #140 · 16.1K reputationPosted Nov 17, 2022, 12:46 AM EST
Go to “File > Preferences > Extensions” and search Encryption-VScode then install and restart the editor.
When you want to encrypt a file press CTRL + SHIFT + P to open the command prompt and type “Encrypt”. You’ll be prompted to enter a pass phrase and the current text document will turn into an encrypted text string.
Mark TaborRank #914 · 2.3K reputationPosted Nov 17, 2022, 5:25 AM EST
NITIN I have installed it but i do not know how to apply it cntrl+shift+P do no action
Sardar Mudassar Ali KhanRank #18 · 48.8K reputationPosted Mar 1, 2023, 7:13 AM EST
Go to “File > Preferences > Extensions” and search Encryption-VScode then install and restart the editor. When you want to encrypt a file press CTRL + SHIFT + P to open the command prompt and type “Encrypt”. You'll be prompted to enter a pass phrase and the current text document will turn into an encrypted text string.