Docker/VSCode

This week we will be working with docker, and I must say that before this semester I had not used it.  It can be quite cumbersome to the newly arrived such as I.  As I move through this newly discovered tool, I see the necessity to learn and use such construct.  Working with larger applications that involve more than one developer and maybe a revolving door of developers require continuously tested and proved documentation.  The documentation is only part of what an organic process that you wish will continue with minimal supervision requires. The other important item to achieve the forementioned is requirements and these can vary broadly even in a single project.  

As I see Docker is a repository of images from a variety of Linux base operating systems to which various tools are set to work with. It relies on a lot of shell scripting which I am not very strong with yet and is deserving of colorful language to describe.  When it comes to the shell scripting is like you fell into the matrix, literally, just as cool as the movie cinematics. When the operating system has to share information with a different one on top of the same machine is like matrix meets the Avengers multiverse, and things get out of control unless you have some magic systems admin moves. Well of course I base that on using vscode since I never used docker on any other IDE.

The use of vscode is also something difficult to described. It is a powerful tool; if you know how to use it well it can yield great performance, but if you don’t, it can yield stress, headache and a powerful mess. This is not to discourage the use of it, certainly the more I learn the more I enjoy it. Just recently I discovered that one of the things I dislike the most is easily fixable and I would like to share it here in case it could help someone.

Problem: OS windows 10 does not show “open with vscode” when you right click a folder.

Diagnostic: when installing vscode there are options that need to be selected in order for that to happen.

Easy  solution: reinstall vscode and select the two options

Cool solution: open vscode; go to file then new windows ,close the other windows; go to file then open folder; open the folder /users/yourName; in vscode; open editors; below is yourName file, clique new file; name it something like vsCodeRegistry.reg or whatever.reg; then copy this text to the body of the file.

Windows Registry Editor Version 5.00

; Open files

[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]

@=”Edit with VS Code”

“Icon”=”C:\\Program Files\\Microsoft VS Code\\Code.exe,0”

[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]

@=”\”C:\\Program Files\\Microsoft VS Code\\Code.exe\” \”%1\””

; This will make it appear when you right click ON a folder

; The “Icon” line can be removed if you don’t want the icon to appear

[HKEY_CLASSES_ROOT\Directory\shell\vscode]

@=”Open Folder as VS Code Project”

“Icon”=”\”C:\\Program Files\\Microsoft VS Code\\Code.exe\”,0″

[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]

@=”\”C:\\Program Files\\Microsoft VS Code\\Code.exe\” \”%1\””

; This will make it appear when you right click INSIDE a folder

; The “Icon” line can be removed if you don’t want the icon to appear

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]

@=”Open Folder as VS Code Project”

“Icon”=”\”C:\\Program Files\\Microsoft VS Code\\Code.exe\”,0″

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]

@=”\”C:\\Program Files\\Microsoft VS Code\\Code.exe\” \”%V\””

Courtesy of a compatriot from Brazil https://dev.to/matheusgomes062/how-to-open-your-files-with-vs-code-from-the-context-menu-on-windows-5fi9; save it go to that file double clique the file and voila, right clique any file and open on vscode.

Now do you understand what this shell script is doing? maybe you do, but I need to look into these things more deeply and as far as I see it appears to be a must to acquire some systems admin moves.

By the way when I tried the first time the shell open and entered an endless loop of empty entries, I had copied something wrong from the file, it is not suppose to do that. The OS will ask you questions if you want to run this, that is supposed to happen.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: