Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for enabling intellisense to dev environments #100

Open
hughrun opened this issue Mar 21, 2023 · 0 comments
Open

Add instructions for enabling intellisense to dev environments #100

hughrun opened this issue Mar 21, 2023 · 0 comments

Comments

@hughrun
Copy link
Contributor

hughrun commented Mar 21, 2023

From a closed PR in the main repository:

I think a better way to solve this ... is to use Visual Studio Code Dev Containers. I haven't previously been using this, but I've just set it up and it seems to work pretty well. Basically you install the plugin and then it mounts your local dev environment as a volume so that changes are made both inside and outside the running container. Since all the requirements are installed in the container, your VS Code can then go ahead and use intellisense for auto-completion and so on.

It requires a fairly simple .devcontainer/devcontainer.json file:

{
	"name": "Bookwyrm Development",
	"dockerComposeFile": ["../docker-compose.yml"],
	"service": "web",
	"workspaceFolder": "/app",
	 "forwardPorts": [1333, 8888]
}

Originally posted by @hughrun in bookwyrm-social/bookwyrm#2653 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant