If you have a TV, you can turn it into a fancy conference room monitor and pretend you have a Surface Hub 2S. Let’s see the different ways we can make Teams/Zoom meetings more a “walking around and thinking” experience, and less a “hunched in front of the laptop” experience. Cheapest/Good - Wire up to a big TVYou can just get a nice HDMI cable and plug it into your TV and duplicate or extend your laptop’s screen. In this simple scenario you’re using your Laptop’s mic and webcam, and just using the screen of your TV. You can also check your audio output and use the TV speakers as output if you like. Doing this is not just a nice change of pace, but it reminds you of the options you have to hold meetings! It’s your space…how many ways can you change your boring meeting into a new perspective by using the same space in a new way? Cheap/Better - Wireless to a big TVIf you want to be wireless, you can use Miracast (if your computer/laptop/Surface supports it) or AirPlay or AirServer to “throw” your screen wirelessly to your TV. Some Samsung Smart TV support wireless communications built-in!
Less Cheap/Best (for me) - Wireless to a big TV with a wireless Webcam via my iPhoneI have a TV on my wall in my office, but it doesn’t lend itself to wires and moving my laptop. I wanted to throw the screen over there AND also have a webcam on top of the TV. Ideally there’d be a webcam in the bezel of the TV, but there isn’t. What’s an ideal and cheap webcam? My iPhone is already a great device with a long life battery, it’s portable, and a webcam. You can get a number of apps that will enable you to use your iPhone (or Android) as a webcam. I decided on Elgato EpocCom to turn my iPhone into a webcam.
Then you’ll get the iPhone side of the app and your iPhone will show up as a camera. With the Pro version ($7.99) you’ll get higher quality and microphone support. Now I just put my iPhone on the top of the TV, run the EpocCam software, and then on my PC I throw my video to the TV and select the EpocCam virtual Camera. Now I can wander around my office and pace and talk and think, which is great! Here I’ve got my Samsung Frame TV (amzn link) (I got it for just $600 as it’s the 2018 model, I love it) and I’ve hooked up the Microsoft Wireless Display Adapter v2 (amzn link). ![]() Other AlternativesOnce you familiarize yourself with these wireless options for throwing video and audio around, you’ll find there is no right answer. There’s only the answer that works for you! The results will be similar, but some of the solutions will fit better into your system or setup. Here’s some other ideas.
Leave your solutions in the comments! There also appear to be Teams devices that will take a TV or Display and Teamsify it! I’ll go educate myself about those as well! Sponsor: Protect your apps from reverse engineering and tampering with PreEmptive, the makers of Dotfuscator. Dotfuscator has been in-the-box with Microsoft Visual Studio since 2003. Visit preemptive.com/hanselminutes for a professional-grade trial. © 2020 Scott Hanselman. All rights reserved. Hack a TV into a Teams and Zoom Computer with EpocCam and Miracast published first on http://7elementswd.tumblr.com/ via Tumblr Hack a TV into a Teams and Zoom Computer with EpocCam and Miracast
0 Comments
Tailscale is a zero config mesh “VPN” that runs atop other networks and effectively “flattens” networks and allows users/services to more easily (and securely) communicate with each other. For example, I’ve written extensively on how to SSH into WSL2 on Windows 10 from another machine and you’ll note that there is not only a ton of steps but there’s more than one way to do it! I have talked about this for SSH, but if you’re an active developer and want to share the services and sites you’re working on with your coworkers and collaborators, there’s a non-trivial amount of setup, management, and maintenance to deal with. Phrased differently, “wouldn’t it be easier if we were all just on the same network and subnet?” WSL1 shares its networking stack with Windows 10, so the “machine” is the same. Whatever YourMachineName is, running a service on 5000 is the same if it’s a Windows service or an app running in Linux under WSL1. However, in WSL2, your Linux environment is “behind” your Windows host. While WSL2 makes it easy to hit http://localhost:5000 by transparent port-forwarding, your WSL2 Linux machine isn’t really a peer on the same network as your other devices. Using a zero-configuration networking system like Tailscale (and similar services) levels the playing field - and the network. Due to some characteristics of WSL2 there are a few gotchas. Here’s how I got it working for me. Tailscale on WSL2Get WSL
Get Tailscale
Modify WSL2
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 Run TailscaleHere you startup the daemon. There’s no systemd (yet) on WSL2, but if you’re on a version over Windows 10 build 21286, there are ways run commands on startup in the Windows Subsystem for Linux. Personally, I just do this in a bash script. sudo tailscaled WSL doesn’t have a way to do an interactive login process, so you wan tot create a pre-authentication key to authenticate a single machine. Then use that key, as I do here, to bring up Tailscale within WSL: tailscale up --authkey=tskey-9e85d94f237c54253cf0 I like to keep this open in another Terminal Tab or Window Pane so I can watch the logs. It’s interesting and verbose! Within the Tailscale machines admin panel, you can see all the machines living on your new Tailscale network. Note that I have scottha-proto listed as Windows, and scottha-proto-1 listed as Linux. The first is my Host machine and the second (the -1) is my Linux WSL2 instance! They are now on a flat network! I was also able to invite a user from outside my network with the new (coming soon) Tailscale node sharing feature. My friend Glenn is NOT in my organization, but just like I use OneDrive or DropBox to create a link to access ONE entity but not the WHOLE system, I can do the same here. Now I can have Glenn hit a service running in WSL2 from his house. Make a Service and Bind it to the Tailscale NetworkI’ve installed .NET 5 in my WSL2 Ubuntu system, made a folder, and run When I run the service - .NET or Node, or whatever - it essential that the service listen on the Tailscale network. Your Linux system in WSL2 is ‘multi-homed’ and is connected to multiple networks. By default my developer systems listen only on localhost. For .NET there’s several ways to listen on all networks (including Tailscale) but I used this one: dotnet run --urls http://*:5100;https://*:5101 So here I’ve got myself connecting to the Tailscale IP that’s associated with my WSL2 instance and hitting my Linux service running within: How far can we take this? Well, since I’m on the Tailscale network and Glenn has connected to it, the whole network is flat, so hitting my service is trivial! Here I am on Teams with my desktop on the bottom and Glenn’s desktop on the top. ![]() Cool. How far can we go? Add Visual Studio Code and the Remote Development SSH ExtensionOk, so flat secure network, no limits! Can I make my WSL2 instance be treated as a remote development system for Glenn? Sure, why not?
On my WSL2 machine, I’ll start up the ssh service. I could share public keys and do proper key-based login, but for this I’ll do it by username. I’ll edit Port 22 I made glenn a local super user just in my WSL2 instance: sudo adduser glenn Glenn then installs the VS Code Remote Development pack and connects using Remote via SSH to my Tailscale IP. Here you can see VS Code from Glenn’s machine is actually installing the VS Code Server and remote developers, and Glenn and code with VS Code architecturally split in half with the client on his Windows machine and the server on my WSL2 instance. Note in the lower left corner, you can see his VS Code is connected to my WSL2 Linux instance’s Tailscale IP! What do you think? You may compare Tailscale to things like NGrok which offers a developer-oriented localhost tunneller, but there are some important differences. Do your research! I have no relationship with this company other than I’m a fan. Sponsor: This week’s sponsor is…me! This blog and my podcast has been a labor of love for 19 years. Your sponsorship pays my hosting bills for both AND allows me to buy gadgets to review AND the occasional taco. Join me! © 2020 Scott Hanselman. All rights reserved. Using Tailscale on Windows to network more easily with WSL2 and Visual Studio Code published first on http://7elementswd.tumblr.com/ via Tumblr Using Tailscale on Windows to network more easily with WSL2 and Visual Studio Code Last year kind sucked, and the end of last year was particularly lame. I got off Twitter for a while and discovered TikTok. I went there as a creative outlet. If you choose to sign up you may get inundated with a bunch of stuff that makes no sense or has no relevance. However, within just a few days by searching for an “liking” topics that I wanted to hear about, I found a wonderful, joyful, diverse TikTok and have learned about everything from Sea Shanties to Indigenous Dances to Woodworking. It’s a lovely little community and I’ve enjoyed my week on it. I’ve been trying out video lately, during these trying times, and have very much enjoyed both TikTok and YouTube as creative outlets. I sent out some of my favorite TikTok videos in my occasional newsletter this week. Here’s some highlights of lovely things on TikTok I’ve found:
I also recently hit 100,000 subscribers on YouTube which is fun. Apparently they are sending me a plaque, so more on that soon. My most recent video is here What happens when you type a URL in the browser and press enter? I encourage you to go subscribe. You can get to my main playlist with the alias http://www.computerstufftheydidntteachyou.com What kinds of creative outlets have you been exploring (to stay sane or otherwise) last year, and what are your plans for this year? Sponsor: Looking for free secure coding training but don’t know where to turn? Check out Veracode Security Labs Community Edition to start hacking and patching real apps online. Try it today. © 2020 Scott Hanselman. All rights reserved. Exploring my creativity through TikTok and YouTube technical education videos published first on http://7elementswd.tumblr.com/ via Tumblr Exploring my creativity through TikTok and YouTube technical education videos
I’ve been a remote worker for 13 years by choice but in 2020 I HAD TO DO IT because, well, most programmers and tech workers did. I wrote about how Remote work != Quarantine Work while our whole division and then the whole company moved back home! We were a fairly remote-friendly company before but I have to admit I didn’t always think my coworkers had really deep empathy for the remote…until they, too, were forced to be remote. Last week on the podcast, I got to speak with Amanda Silver. She’s a CVP in the Microsoft Developer Division who has been coding and thinking deeply about coding for many years. She’s leading the creation of tools like Visual Studio, Visual Code, Live Share, Code Spaces, IntelliCode, and other collaborative productivity products. She’s always thinking about what coding will look like in 1, 5, and even 10+ years. We talked about her thoughts on moving the division remote and whether it would slow us down. Would it change how we develop software? What about when everyone comes back? After talking to her about her thoughts on 2020 and where she thinks we’re heading, I got to thinking myself and wanted to put those thoughts down. 2020 broke everything, and developers like to fix thingsSomewhere in the spring as we started into lockdown, developers started making sites. Sites to track COVID, GitHub projects with scripts to scrape data and analyze it. Javascripters started making D3.js visualizations and codepen users started building on top of them. Bots on twitter would tweet out updates and parse new data. When there’s a problem - especially a scary or untenable one - developers run towards the challenge. Necessity breeds invention and 2020 was definitely a year where we were collectively reminded there was a bunch of stuff that was always possible, but we needed a push. Cameras and mics were upgraded, ring lights were purchased, home networks got fancier, and everyone who could called their ISP and got an upgraded plan. We could have done all this before, but why? Remote work happened for the first time in 2020, and I say that having worked remotely forever. We HAVE to collaborate remotely nowBack in 2010 I spoke to PhDs at Microsoft Research about how people feel when they are remote and what they can do to be more connected. Ten years! Folks thought it was pretty “out there” but I sure needed my virtual cubicle buddy this year. 2020 accelerated what was possible with remote collaboration. I spent hours coding with Live Share, pushing text and coding context over the wire, not a ridiculous 4k worth of pixels. Having two cursors (mine and my friends) - or even 10! - in one Visual Studio seemed like magic. Even more magic is me pressing F5 and my coworker hitting their localhost and seeing our app running! We needed tech like this more than ever in 2020. I heard one story where a company sent everyone home but folks had disparate desktops and laptops so they set up 100s of Virtual Desktops over a weekend so everyone was able to log into secure work systems from their home machines. For us, since we use Github and Azure DevOps here in DeviDiv, our collaboration model is asynchronous and distributed whether we are in the office or not. Can you imagine everyone working remotely while using a locking source control system in 2020? I feel bad for those who are in that predicament. Can something be BETTER remotely?Many of us miss being in the same room with co-workers, and we will be together again one day, but are there some things that the constraint of being remote can make better? In the podcast episode Amanda said that our new hire bootcamp was so much better remotely! She said (paraphrasing a bit):
Constraints breed innovation! It was nice to be reminded that People are People2020 normalized being a person. Having a boss welcome a sad child to sit with them during a meeting reminded me that, what, my boss is a person? With a life and kids? Having meetings while going for walks, talking about treadmill desks, and video called parties with family, and OMG when will this be over is the most horrible team building exercise ever. It’s forced us to rethink our group’s culture, how our interpersonal dynamics work, how many meetings we have (let’s have less), and it’s given everyone the joy of somewhat flexible hours. We talk more now about ‘is everyone in this meeting being heard?’ than ever before. We use the “hand raising” tool in Teams to make sure all voices get a chance to speak. If 2020 hadn’t happened, we may not have made these important leaps forward. MAYBE this would have happened by 2025 or 2030 but COVID was the pivot point that forced the issue. Here’s some other blog posts that are both reflecting on our last year and hopeful for the coming year:
Sponsor: Looking for free secure coding training but don’t know where to turn? Check out Veracode Security Labs Community Edition to start hacking and patching real apps online. Try it today. © 2020 Scott Hanselman. All rights reserved. Looking back on Software Development in 2020 and forward to 2021 published first on http://7elementswd.tumblr.com/ via Tumblr Looking back on Software Development in 2020 and forward to 2021 The Stream Deck! (amazon link) is a lovely little device with bright LCD buttons that you can program to do basically anything. I decided to finally add a few hotkeys for Microsoft Teams. I wanted pretty icons, so I used the same ones that Teams uses! The images in a Stream Deck are 144x144 so I used Ctrl-PLUS in Teams to scale the Teams interface up to a large size. The icons look great since Teams uses SVGs (scalable vector graphics). I saved each icon in its own PNG and put it in DropBox/OneDrive so I can sync it to all my machines.
Here’s the icons in my folder. Next just go into Stream Deck’s editor and make a new Hotkey button for each. The Hotkeys are like Ctrl+Shift+B to leave and Ctrl+Shift+M for mute. Your Teams (or zoom) has to be the topmost app for the Hotkey buttons to work as Stream Deck is just “pressing the keys” for you when you press the Stream Deck button. There’s no Universal Mute button in Windows…yet.
It takes just a few minutes, but this little quality of life change makes daily Teams calls just a little nicer. I’d encourage you to take a moment and do the same if you have a Stream Deck! (amazon link) A few minutes of work up front will make each day a little nicer and that time adds up! Sponsor: IDC Innovators Report: Multicloud Networking–Read the latest from IDC and discover one of the premier platforms addressing the rise of multicloud architectures and cloud-native apps. Download now. © 2020 Scott Hanselman. All rights reserved. Microsoft Teams Buttons for Stream Deck to Mute, Share, Hang up, and Manage Cameras published first on http://7elementswd.tumblr.com/ via Tumblr Microsoft Teams Buttons for Stream Deck to Mute, Share, Hang up, and Manage Cameras Can you believe it’s been 6 years since my last Tools list? Tools have changed, a lot are online, but honestly, it’s just a LOT OF WORK to do the tools list. But here’s one for 2020-2021. These are the tools in my Utils folder. I made a d:\dropbox\utils folder and I added it to my PATH. That way it’s on all my computers and in my path on all my computers and I can get to any of them instantly.
Everyone collects utilities, and most folks have a list of a few that they feel are indispensable. Here’s mine. Each has a distinct purpose, and I probably touch each at least a few times a week. For me, “util” means utilitarian and it means don’t clutter my tray. If it saves me time, and seamlessly integrates with my life, it’s the bomb. Many/most are free some aren’t. Those that aren’t free are very likely worth your 30-day trial, and very likely worth your money. These are all well loved and oft-used utilities. I wouldn’t recommend them if I didn’t use them constantly. Things on this list are here because I dig them. No one paid money to be on this list and no money is accepted to be on this list.
Please Link to http://hanselman.com/tools when referencing the latest Hanselman Ultimate Tools List. Feel free to get involved here in the comments, post corrections, or suggestions for future submissions. I very likely made mistakes, and probably forgot a few utilities that I use often. THE LIFE AND WORK-CHANGING UTILITIES
Amazing .NET and Developer utilities
Useful Windows Utilities that should be built in
Visual Studio Code Extensions
There’s a million great Visual Studio Extensions. The ones I like won’t be the that ones you like. But, go explore.
Things I enjoy
Oh yes, and finally Windows Sandbox - You already have this and didn’t even know it! You can fire up in SECONDS a copy of your Windows 10 machine in a safe sandbox and when you close it, it’s gone. Poof. Great for testing weird tools and utilities that some rando on a blog asks you to download. Sponsor: IDC Innovators Report: Multicloud Networking–Read the latest from IDC and discover one of the premier platforms addressing the rise of multicloud architectures and cloud-native apps. Download now. © 2020 Scott Hanselman. All rights reserved. Scott Hanselman’s 2021 Ultimate Developer and Power Users Tool List for Windows published first on http://7elementswd.tumblr.com/ via Tumblr Scott Hanselman's 2021 Ultimate Developer and Power Users Tool List for Windows I love my pretty prompt that I use with Windows Terminal and Powershell. I also like using PSReadline to bring even more cool features to the CLI (Command Line Interface). One of the best and easiest ways to get an awesome looking prompt on Windows is with Oh My Posh, and there’s now Oh My Posh 3! Now, to be clear, you get to be pretty extra with these prompts and some people find them to be a turn off if there’s too much bling. Remember: It’s your prompt and you are in control. It’s totally configurable - so configure it! What do you need to start?
Let’s upgrade my Oh My Posh installation to Oh My Posh 3 and see what’s new and changed, shall we? Here’s my current prompt: ![]() There’s an upgrading section in the docs, if you are going from an existing installation of Oh My Posh to v3. Let’s check it out. Looks like I just need to do this: Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser That’s…suspiciously…not difficult. Now, just add this text to your $profile (again, there are instructions for other prompts).
Here’s a clever feature, you can call “Get-PoshThemes” and see a PREVIEW of different prompt themes and pick one! ![]() Hey that “jandedobbeleer” font is as extra as I am. I like it. Set-PoshPrompt -Theme jandedobbeleer The fun stuff is where you can add things like your current Azure subscruption, or your current kubectl, or even YouTube music. I like the dotnet option. Let me see how to change that. There is an OhMyPosh executable you can get that will print your current config that you can then modify. Download the right version of that and put it in your PATH somewhere. I put mine in my sync'ed d:\dropbox\utils which makes it available on any machine, but that’s just me.
I will get the current config and put it in the clipboard, then paste it into VS Code and modify it. posh-windows-amd64.exe -print-config
If you want to copy in your own fancy glyph, use charmap.exe to copy the one you want. There’s lots of choices in nerdfonts. Pretty fancy! I’ve got the path, my git, and the current .NET Core SDK version in that path, as well as a heartbeat of the current CLI error code. ![]() I’ve uploaded my ohmyposhv3.json as a Gist on GitHub. Next I think I’ll look into how to make my own custom segment and make a Nightscout Blood Sugar segment and show my blood sugar in real time as I used to. Sponsor: Have you tried developing in Rider yet? This fast and feature-rich cross-platform IDE improves your code for .NET, ASP.NET, .NET Core, Xamarin, and Unity applications on Windows, Mac, and Linux. © 2020 Scott Hanselman. All rights reserved. Taking your PowerShell prompt to the next level with Windows Terminal and Oh my Posh 3 published first on http://7elementswd.tumblr.com/ via Tumblr Taking your PowerShell prompt to the next level with Windows Terminal and Oh my Posh 3 I’m a fan of Adafruit and all their products. There’s no referral links here, just fandom and a personal recommendation from me. I’ve been a long-time subscriber of the AdaBox. The AdaBox is “Curated Adafruit products, unique collectibles, and exclusive discounts. All delivered quarterly.” You can give Adaboxs (Adaboxen?) as a gift one time, or you can sign up for the regular subscription like I did. How much do I love them? I actually did a pilgrimage to New York and visited them in person. It’s as amazing as you’d imagine and Lady Ada is epic. Back to the AdaBox! Check out the list of previous Adaboxes (and order one if it’s not already sold out!) As of this writing there are just 2 left of AdaBox007, the SPY box. This one was a hit with my kids as it included a full lockpicking kit! I literally taught them about the internals of a lock and how it works. The AdaBox015 was also cool as it included the CLUE sensor development board that was the same size and shape as the popular BBC micro:bit. The kids made a DIY soil moisture sensor and with the included Water Pump, set up autowatering for our plants! AdaBoxes are always solderless (unless you want to do something advanced!) and great for kids to explore electronics. You’ll get things like IR sensors, Buzzers, LEDs, and full instructions on how to build that box’s project! Every quarter you get a new box and it’s a joyful surprise every time. Adabox017 just showed up yesterday at my house! It included a cool MagTag with a 2.9" grayscale E-Ink display! It has an ESP32-S2 wireless module and uses CircuitPython so I, I mean, the children, can easily create a low-power IoT display. The display will even stay on when power is removed. They’ll be doing a live unboxing on December 23rd at 8pm ET so subscribe to their YouTube. We could make a weather display! Internal climate? What’s on Netflix? A tiny Dakboard? Show my blood sugar? The possibilities are endless. AdaBox is available in the United States, Puerto Rico, Canada, the UK, France, Germany, Netherlands, Norway, and Switzerland. They are signing up for AdaBox018 that will ship in March 2021. BTW if you are looking for other holiday shopping ideas, check out Adafruit’s Holiday Shipping Guide here. Anyway, enough of my rant. Their stuff is a joy, go check it out. Sponsor: Have you tried developing in Rider yet? This fast and feature-rich cross-platform IDE improves your code for .NET, ASP.NET, .NET Core, Xamarin, and Unity applications on Windows, Mac, and Linux. © 2020 Scott Hanselman. All rights reserved. The regular joy of the Adafruit AdaBox Subscription and exploring IoT with the family published first on http://7elementswd.tumblr.com/ via Tumblr The regular joy of the Adafruit AdaBox Subscription and exploring IoT with the family It works. Really.
If you are new to programming, go check out my YouTube, specifically this one about being Overwhelmed with Programming. I talk about the importance of Rubber Ducking and verbalizing how your code should work. This can be challenging in these remote times, so I recommend that you try to build a small community of like minded friends and developers. You can find folks on Discord and other community sites or consider reaching out to a friend on Twitter or from work and say “I can use you as a rubber duck sometimes?” I have little Gundam and Gunpla (Amazon link) robot models on my desk and I’ll use them to help me debug. This might sound silly but it ABSOLUTELY works. Ask around. Try it. You’ll find that getting the problem outside your head, via your mouth, and then back into your ears is often enough to shake brain cells loose and help you solve the issue. Rubber Ducking also is great practice in technical communication! Have you ever given a technical talk? There’s actually not much distance between explaining a technical issue clearly, correctly, and concisely and giving a talk at a user group or conference! Have you tried Rubber Duck Debugging? Let us know AND encourage early in career Code Newbies to consider (and normalize) this technique! Sponsor: Suffering from a lack of clarity around software bugs? Give your customers the experience they deserve and expect with error monitoring from Raygun.com. Installs in minutes, try it today! © 2020 Scott Hanselman. All rights reserved. The art of Rubber Ducking or Rubber Duck Debugging published first on http://7elementswd.tumblr.com/ via Tumblr The art of Rubber Ducking or Rubber Duck Debugging I use PowerShell 7 (cross platform, open source, runs on .NET Core) as my main shell of choice at the Windows command line. I use it in the Windows Terminal and I have a pretty prompt thanks to OhMyPosh. I’ve also set up autocomplete in PowerShell (type something, then TAB) with git and dotnet!
![]() I thought I had things pretty well dialed in. I even used PSReadLine, a bash inspired readline implementation for PowerShell. But was I REALLY USING IT? No. Honestly, at the time I wouldn’t be able to tell you what it offered me as a command line users. Wow was I wrong. Don’t sleep on PSReadLine if you use PowerShell as your preferred prompt. Head over there and give them some love and a star and buckle up, friends! Head over to a prompt and run Install-Module PSReadLine -AllowPrerelease -ForceIf you want the latest, otherwise remove the Prerelease. Then edit your $profile. I usually do this: notepad $PROFILE And add if ($host.Name -eq 'ConsoleHost') First, PSReadLine makes everything better with sprinkles of color everywhere automatically. But the thing I was not really digging into was customizing my $profile to light up cool features and set keybindings that made sense to me. It was this totally configured and blinged out sample PSReadline Profile that made me realize I wasn’t doing enough. I cherry-picked the best parts out of this and I recommend you do the same! You get nice improvements with bash-like command line editing. The most important one being the PowerShell equivalent of ctrl-r “bck-i-search” that bash users enjoy. You can also set command line handlers so pressing “up arrow” with some existing text will find that item in history. Set it up once in your $profile. Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward Like Emacs but want PowerShell to be more like Emacs? It’s possible! Set-PSReadLineOption -EditMode Emacs Got PSReadLine already but you’re not sure what is key bindings are set up today? Get-PSReadLineKeyHandler This will give you a complete picture You know how you can “ctrl shift b” in Visual Studio to build your project? I made ctrl shift b type “dotnet build” for me in PowerShell! Muscle memory for the win! # This is an example of a macro that you might use to execute a command. Check out the really advanced stuff in the sample $profile. I like the Smart Insert/Delete. It will take over your ’ quotes and quotes “ and braces { and ) parens and make them auto matching! That means you can type a variable or string, select it with Shift Arrow Key or Ctrl Shift Arrow Key, then typeover it with a ” and it’ll automatically quote the whole string. A very nice command line experience that you may enjoy in other shells but you never really set up PowerShell. Even more useful is Alt+’ that will take a string and change it from a ‘string’ to a “string.” Take a few moments and think about the things you type too often. The things you type twice, or ten times a day. Check out your $profile, consider your aliases, and tidy up. I suspect PSReadLine could help. It was great for me! While you are at it, also pick up PSColors! Next post I’ll talk about Oh my Posh 3! Sponsor: Suffering from a lack of clarity around software bugs? Give your customers the experience they deserve and expect with error monitoring from Raygun.com. Installs in minutes, try it today! © 2020 Scott Hanselman. All rights reserved. You should be customizing your PowerShell Prompt with PSReadLine published first on http://7elementswd.tumblr.com/ via Tumblr You should be customizing your PowerShell Prompt with PSReadLine |
About UsIf you want to keep up with the latest in web design, you have to be willing to study and learn on an ongoing basis. If you are a web developer or web designer, you’ll find a lot of useful tutorials and code snippets collection here. Furthermore, we also discuss more general topics of web design and how the role of a web designer has evolved over the years.
|