"command 'macro.compile' not found"

When I use Ctrl + Shift + B to try and compile from VSC, it shows me this -
image

I am so sorry if this error’s solution was given in the course, because I have just started using VSC.
(I used VS mostly, since I am on Windows and have no need for using VSC. But the shortcuts on VSC are a lot better than the VS ones. Or i am just not able to find them on VS lol)

Note - Take your time to answer this one, since I can still compile successfully from the editor.

Which shortcuts in particular?


I am not familiar with that error and searching isn’t helpful. Are you sure you have the workspace open?

The Ctrl + Shift + P one is really helpful. You can literally do anything from it. Also I like the extensions.

Yes. My workspace is open.

You can vote on that here https://developercommunity.visualstudio.com/idea/460947/command-palette.html

Not sure then :man_shrugging:. What does your tasks.json look like (in the .vscode folder).

It looks… large!

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "SimpleShooter Win32 Debug Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Debug Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win32 Debug Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Debug Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 DebugGame Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 DebugGame Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win32 DebugGame Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 DebugGame Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Development Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Development Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win32 Development Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Development Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Shipping Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Shipping Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win32 Shipping Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Shipping Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Test Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Test Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win32 Test Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win32 Test Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win32",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Debug Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Debug Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win64 Debug Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Debug Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 DebugGame Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 DebugGame Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win64 DebugGame Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 DebugGame Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Development Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Development Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win64 Development Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Development Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Shipping Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Shipping Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win64 Shipping Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Shipping Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Shipping",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Test Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Test Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooter Win64 Test Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooter Win64 Test Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooter",
				"Win64",
				"Test",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Debug Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Debug Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooterEditor Win64 Debug Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Debug Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Debug",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 DebugGame Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 DebugGame Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooterEditor Win64 DebugGame Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 DebugGame Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"DebugGame",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Development Build",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Development Rebuild",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Build.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"dependsOn": [
				"SimpleShooterEditor Win64 Development Clean"
			],
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		},
		{
			"label": "SimpleShooterEditor Win64 Development Clean",
			"group": "build",
			"command": "Engine\\Build\\BatchFiles\\Clean.bat",
			"args": [
				"SimpleShooterEditor",
				"Win64",
				"Development",
				"C:\\REPOS\\UNREAL_PROJECTS\\SimpleShooter\\SimpleShooter.uproject",
				"-waitmutex"
			],
			"problemMatcher": "$msCompile",
			"type": "shell",
			"options": {
				"cwd": "C:\\Program Files\\Epic Games\\UE_4.24"
			}
		}
	]
}

Privacy & Terms