Moving to my new Microsoft surface and setting up VSCode again to use with powershell. I’m documenting my setup in this blog post so its easier next time.
First is setting up VScode with plugins and configuration.
Mike has the first steps on getting VSCode install and the powershell and vscode-icons install
Keyboard shortcuts details
Customize Visual Studio Code keyboard shortcuts
Visual Studio Code also enables you to customize keyboard shortcuts. To customize keyboard shortcuts, select Command Palette from the View menu or press Ctrl+Shift+P (Cmd + P on the Mac), and then type keyboard. Then, select Preferences: Open Keyboard Shortcuts.
Just like with user settings, Visual Studio Code will open two editor windows side-by-side. The editor window on the left, lists all the default keyboard shortcuts and is read-only. The editor window on the right is for your customized keyboard shortcuts.
Here are two great post on how to setup VSCode, the more you know the better 🙂
Here are a few post about the basics of powershell profiles.
If you’ve been using ISE for your powershell needs, you need to know that vscode uses a different file for your $profile.
Checkout the post below to see how to create the new $profile
I’d like to have the date and time on the prompt so I add the code below to my $profile
“PS ” + $(get-location) + ” [$(Get-Date)]> ”
O365 and powershell
I use powershell with o365 all the time so to connect to all the o365 services follow this post.