vscode configuration

This commit is contained in:
Evan Pratten 2021-04-22 10:22:23 -04:00
parent 1d3f158706
commit 0861a84777
5 changed files with 53 additions and 1 deletions

7
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM mcr.microsoft.com/vscode/devcontainers/rust
# Install Raylib deps
RUN apt-get update -y
RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev -y
RUN cargo install cross

View File

@ -0,0 +1,24 @@
// {
// "name":"Rust Game Development",
// "dockerFile":"./Dockerfile",
// "settings": {
// "terminal.integrated.shell.linux":"/bin/bash"
// },
// "workspaceMount": "source=${localWorkspaceFolder},target=/root/workspace,type=bind,consistency=cached",
// "workspaceFolder": "/root/workspace",
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind" ],
// "forwardPorts": [],
// "extensions": [
// "coenraads.bracket-pair-colorizer-2",
// "eamodio.gitlens",
// "github.vscode-pull-request-github",
// "ms-azuretools.vscode-docker",
// "ms-vsliveshare.vsliveshare",
// "vscode-icons-team.vscode-icons",
// "visualstudioexptteam.vscodeintellicode",
// "ms-python.python",
// "matklad.rust-analyzer",
// "serayuzgur.crates",
// "bungcip.better-toml"
// ]
// }

12
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,12 @@
{
"recommendations": [
"matklad.rust-analyzer",
"serayuzgur.crates",
"bungcip.better-toml",
"aaron-bond.better-comments",
"streetsidesoftware.code-spell-checker",
"codezombiech.gitignore",
"ionutvmi.path-autocomplete",
"ms-vsliveshare.vsliveshare"
]
}

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"cSpell.words": [
"raylib"
]
}

View File

@ -7,4 +7,8 @@
- [Raylib Rust documentation](https://docs.rs/raylib/3.5.0/raylib/)
- [Raylib Rust examples](https://github.com/deltaphc/raylib-rs/tree/master/samples)
- ["Are We Game Yet?"](https://arewegameyet.rs/#ecosystem)
- [`cross` cross-compiler tool](https://github.com/rust-embedded/cross)
- [`cross` cross-compiler tool](https://github.com/rust-embedded/cross)
### VSCode Setup
If using VSCode, disable the `Rust` extension, and install everything in the **Workspace Recommendations** (You will see this list by searching `@recommended` in the extensions panel)