ah yes, my favorite way of entering a directory,
z n i g a
this would enter Documents/git/ahmetemregurdal/home-manager-config
granted, z hom or z d g h a are also options, but i prefer former.
oh really? I didn't know that, I'm using code because i installed codium and found some stuff missing and just switched back to code (although I really hate Microsoft)
Funny thing, that makes totally sense if the mainframe is via vpn, and it will take over the default gateway and start pumping all your traffic via that route. I can totally see it happening if the compile is pulling remote libraries.
sudo apt-get update && sudo apt-get dist-upgrade && screenfetch
I *used* to run this every few hours to prove to myself that I'm cool.
(Yes.. judge me)
I just learned about this cool as shit module today and now I want to do everything from CLI lol. I just wish there was some kind of in terminal version of vscode so I never had to leave.
https://new.reddit.com/r/PowerShell/comments/1bzslev/streamlining\_your\_workflow\_around\_the\_powershell/
I guess I should specify that I don't *just* want VSCode. I want VSCode with the PowerShell plugin.
1. Intellisense
2. Quick way to set breakpoints and run in debug mode without leaving the editor
The cool kids are using neovim these days.
All it takes is downloading a distro (astro or nvchad), then discovering it doesn't do what you want and finally sinking a few weeks into learning enough to make your own custom config.
Plus learning modal editing. ;)
Oh, and you probably need another terminal or two, so time to pick up tmux.
But otherwise, you should be set.
I open the explorer to the correct folder then type `cmd /c code .` In the file path bar - also saves as recent search so I just click on the path bar and itās right there
for a while my gpu driver was corrupted so vscode was looking all buggy. I preferred opening a new console window and typing "code ./ --disable-gpu" every time instead of reinstalling the driver
after a month or two I finally got the motivation to visit nvidia's site lol
If you are the person who uses extensions instead of the terminal to run your code, the trust the authors of this directory warning is intended for you.
You just download the file of the extension from the online store and then apply it, it's really easy to Google, just search for 'installing vscode extension from file'
Also most are there anyways, so you won't be doing this much.
Well, define using the CLI. I also get lost with the syntax occasionally (parentheses, brackets, braces, all that, I remember brackets is optional, rest I'm not always sure of).
To change directories,
You open explorer by typing `explorer` in your cli
Then navigate to the desired directory
Right click, open in command prompt (or your desired terminal)
I found on Mac (Iām sure on PC too) you can make a folder action through Automator where when you right click the directory there is a āOpen in VSCā option.
Edit: if youāre curious. I had ChatGPT walk me through when I did it, I just asked it again, and havenāt verified it is correct, but should get you on the right path.
How to Add 'Open in VS Code' to Right-Click Menu on Folders for macOS and Windows:
macOS:
1. Create an Automator Service:
- Open Automator (in Applications).
- Create a New Document > Quick Action.
- Set "Workflow receives current" to folders in Finder.
- Add Run Shell Script action (set "Pass input" to as arguments).
- Use this script: open -a "Visual Studio Code" "$@".
- Save it (e.g., Open in VS Code).
2. To Use:
- Right-click a folder in Finder > Services > Open in VS Code.
Windows:
Note: Editing the registry can be risky. Back up your registry before proceeding.
1. Open Registry Editor:
- Press Win + R, type regedit, and hit Enter.
2. Add Context Menu for Directories:
- Navigate to HKEY_CLASSES_ROOT\Directory\shell.
- Right-click on shell > New > Key, name it OpenInVSCode.
- Inside OpenInVSCode, create a new key named command.
- Double-click the default value of command, set to: "C:\Users\YourUsername\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%V" (replace YourUsername and adjust the path as needed).
3. Using It:
- Right-click any folder > Open in VS Code.
Note: For Windows, ensure the path to VS Code is correct for your installation. Modify YourUsername to match your actual username. Always exercise caution when making changes to your system's registry.
I too am a cli user myself. *quietly typing*: explorer .
You should be proud, not every man can find her `cli`
Command not found.
start .
Real cli users use start .
This is the way
You should look into using \`ii .\` to save a few characters if you are in powershell.
I do this every time
Yup same. Cd to my repo, git status check, then code .
I even have set aliases to frequently used repo folders
Use zoxide man
ah yes, my favorite way of entering a directory, z n i g a this would enter Documents/git/ahmetemregurdal/home-manager-config granted, z hom or z d g h a are also options, but i prefer former.
Alias zoxide to cd and use cdi when coworkers are looking
I am also a OSS user. so i do; ```codium .```
copium
based
Hehe peasant
i literally cannot tell the difference betweem codium and code idk what ur yapping on about
There is no visible difference in the software, but there is in the extension ecosystem because microsoft sucks
You can install extensions that you don't see there from the web version you know?
oh really? I didn't know that, I'm using code because i installed codium and found some stuff missing and just switched back to code (although I really hate Microsoft)
ah yes r/programmerhumor how i keep forgetting that people here are dense af.
yes my king, please explain to us peasants how vs codium is worse than vs code
Lol. Btw, totally unrelated quote : "do not argue with an idiot, he will drag you down to his level and defeat you with experience"
true
how i feel after running python main.py
Me after `node index.js` instead of `node .`
Look at that guy not using tab.
Wa-hoa chill there, hackerman. Don't wanna accidentally open an uplink to the mainframe while trying to cross-compile your binaries, fellow netrunner
Funny thing, that makes totally sense if the mainframe is via vpn, and it will take over the default gateway and start pumping all your traffic via that route. I can totally see it happening if the compile is pulling remote libraries.
sudo apt-get update && sudo apt-get dist-upgrade && screenfetch I *used* to run this every few hours to prove to myself that I'm cool. (Yes.. judge me)
At least you're not running CLI commands every minute just to prove yourself you're cool, like many Linux users š
I do docker system prune to redo 2 years of work everyday...
nvim
Do you have a good nvim setup for powershell? I was just starting to look into this today. The sentiment online is ambiguous at best.
[my setup](https://github.com/scottmckendry/windots)
alias vi=ācodeā
abomination
Ok I just added it. It pure genius!
Monster!
I just learned about this cool as shit module today and now I want to do everything from CLI lol. I just wish there was some kind of in terminal version of vscode so I never had to leave. https://new.reddit.com/r/PowerShell/comments/1bzslev/streamlining\_your\_workflow\_around\_the\_powershell/
Vim is pretty much vscode with 6 layers of sweat
I guess I should specify that I don't *just* want VSCode. I want VSCode with the PowerShell plugin. 1. Intellisense 2. Quick way to set breakpoints and run in debug mode without leaving the editor
Emacs with lsp
The cool kids are using neovim these days. All it takes is downloading a distro (astro or nvchad), then discovering it doesn't do what you want and finally sinking a few weeks into learning enough to make your own custom config. Plus learning modal editing. ;) Oh, and you probably need another terminal or two, so time to pick up tmux. But otherwise, you should be set.
just use vim
You are truly the `cli` commander.
`npm start`
`code -a .`
`code -r .` `code -n .`
Window + Vs code
This works until you are running from administrator cmd. Or have they fixed it yet?
When Anaconda is installed without being added to PATH. Open anaconda prompt, cd workdir, code .
Ho how I hate this command, calling it `code` like if it was a goddam universal way to code.
I open the explorer to the correct folder then type `cmd /c code .` In the file path bar - also saves as recent search so I just click on the path bar and itās right there
Brilliant, might give it a try later
for a while my gpu driver was corrupted so vscode was looking all buggy. I preferred opening a new console window and typing "code ./ --disable-gpu" every time instead of reinstalling the driver after a month or two I finally got the motivation to visit nvidia's site lol
Sheesh, that level of laziness reminds me of myself
If you are the person who uses extensions instead of the terminal to run your code, the trust the authors of this directory warning is intended for you.
I mean opening a tui text editor isn't any more complicated so I'd say you basically a 10x dev at this point
VS Code + Vim keybindings baby š
how i feel after opining the comandilne in the comand line to open the command line. (i am not sane)
You just download the file of the extension from the online store and then apply it, it's really easy to Google, just search for 'installing vscode extension from file' Also most are there anyways, so you won't be doing this much.
This is why I aliases vi to code instead of vim.
Are there actually developers running around that don't know how to use a CLI?
Well, define using the CLI. I also get lost with the syntax occasionally (parentheses, brackets, braces, all that, I remember brackets is optional, rest I'm not always sure of).
Me using command line git even though vs code has visual git support:
To change directories, You open explorer by typing `explorer` in your cli Then navigate to the desired directory Right click, open in command prompt (or your desired terminal)
CLI? Whatās that some kind of a GUI for keyboard coding stuff?
Literally me
`Alias ide='code'` `ide`
Amateurs.. Wait until you run 'npm run build'. That you can call yourself a CLI user...
I found on Mac (Iām sure on PC too) you can make a folder action through Automator where when you right click the directory there is a āOpen in VSCā option. Edit: if youāre curious. I had ChatGPT walk me through when I did it, I just asked it again, and havenāt verified it is correct, but should get you on the right path. How to Add 'Open in VS Code' to Right-Click Menu on Folders for macOS and Windows: macOS: 1. Create an Automator Service: - Open Automator (in Applications). - Create a New Document > Quick Action. - Set "Workflow receives current" to folders in Finder. - Add Run Shell Script action (set "Pass input" to as arguments). - Use this script: open -a "Visual Studio Code" "$@". - Save it (e.g., Open in VS Code). 2. To Use: - Right-click a folder in Finder > Services > Open in VS Code. Windows: Note: Editing the registry can be risky. Back up your registry before proceeding. 1. Open Registry Editor: - Press Win + R, type regedit, and hit Enter. 2. Add Context Menu for Directories: - Navigate to HKEY_CLASSES_ROOT\Directory\shell. - Right-click on shell > New > Key, name it OpenInVSCode. - Inside OpenInVSCode, create a new key named command. - Double-click the default value of command, set to: "C:\Users\YourUsername\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%V" (replace YourUsername and adjust the path as needed). 3. Using It: - Right-click any folder > Open in VS Code. Note: For Windows, ensure the path to VS Code is correct for your installation. Modify YourUsername to match your actual username. Always exercise caution when making changes to your system's registry.
Weakness disgusts me... Nano...