<filename>.devcontainer/devcontainer.json
{
	"name": "Azure Functions & Java 8",
	"dockerFile": "Dockerfile",
	"forwardPorts": [
		7071
	],
	// Set *default* container specific settings.json values on container create.
	"settings": {
		"terminal.integrated.shell.linux": "/bin/bash",
		"java.home": "/usr/lib/jvm/zulu-11-azure-amd64",
		"java.configuration.runtimes": [
			{
				"default": true,
				"name": "JavaSE-1.8",
				"path": "/usr/lib/jvm/zulu-8-amd64",
			}
		],
		// Additional settings
		"editor.codeActionsOnSave": {
			"source.organizeImports": true
		},
		"editor.formatOnPaste": true,
		"editor.formatOnSave": true,
		"editor.formatOnSaveMode": "file",
		"editor.formatOnType": true,
		"files.autoSave": "afterDelay",
		"java.format.settings.url": ".devcontainer/java-code-format-setting.xml",
	},
	// Add the IDs of extensions you want installed when the container is created.
	"extensions": [
		"ms-azuretools.vscode-azurefunctions",
		"vscjava.vscode-java-pack"
	]
	// Use 'postCreateCommand' to run commands after the container is created.
	// "postCreateCommand": "java -version",
	// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
	// "remoteUser": "vscode"
}