Visual Studio Code: Difference between revisions

imported>Jmarmstrong1207
Clarify the nix-shell section especially for beginners. Move section to installation for a more seamless installation process.
imported>Jmarmstrong1207
Move out of installation section. Makes more sense.
Line 85: Line 85:
programs.vscode.package = pkgs.vscode.fhsWithPackages (ps: with ps; [ rustup zlib openssl.dev pkg-config ]);
programs.vscode.package = pkgs.vscode.fhsWithPackages (ps: with ps; [ rustup zlib openssl.dev pkg-config ]);
</syntaxHighlight>
</syntaxHighlight>
=== Creating development environments using nix-shell ===
Instead of using configuration.nix to add packages (e.g. Python or NodeJS) for developing code on VSCode, you can instead use nix-shell. This will allow you to seamlessly create development environments with the correct packages for your project, without rebuilding and restarting NixOS. See [https://nixos.wiki/wiki/Development_environment_with_nix-shell this page] for further instructions in building nix-shell development environments.
The extension [https://marketplace.visualstudio.com/items?itemName=arrterian.nix-env-selector nix-env-selector] will make switching between different nix-shell environments within VSCode so you can switch between different coding projects easily. It has a guide for setting up nix-shell environments for VSCode.


=== Insiders Build ===
=== Insiders Build ===
Line 152: Line 147:


Take the output from this command and input it where your placeholder was.
Take the output from this command and input it where your placeholder was.
== Creating development environments using nix-shell ==
Instead of using configuration.nix to add packages (e.g. Python or NodeJS) for developing code on VSCode, you can instead use nix-shell. This will allow you to seamlessly create development environments with the correct packages for your project, without rebuilding and restarting NixOS. See [https://nixos.wiki/wiki/Development_environment_with_nix-shell this page] for further instructions in building nix-shell development environments.
The extension [https://marketplace.visualstudio.com/items?itemName=arrterian.nix-env-selector nix-env-selector] will make switching between different nix-shell environments within VSCode so you can switch between different coding projects easily. It has a guide for setting up nix-shell environments for VSCode.


== Wayland ==
== Wayland ==