Actions

EmSys

Difference between revisions of "Using Visual Studio Code for ARM Development – Workspace and Project(s)"

From EdWiki

m
m (See Also)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== Workspace and Project(s) ==
+
__NOTOC__
Similar to other IDEs, Visual Studio Code is using the concept of a ‘'''workspace'''’. In simple words, a workspace is a collection of '''Folders''' open in the IDE. See https://code.visualstudio.com/docs/editor/workspaces for more details. In the most simple case a workspace just contains a folder which is the folder for the project. So all what we need is a add a folder.
+
  
[[image:vscode_add_folder.png|right]]
+
== VSCode - Workspace and Project(s) ==
 +
Similar to other IDEs, Visual Studio Code is using the concept of a ‘'''workspace'''’. In simple words, a workspace is a collection of '''Folders''' open in the IDE. See [https://code.visualstudio.com/docs/editor/workspaces workspaces] for more details. In the most simple case a workspace just contains a folder which is the folder for the project. So all what we need is to add a folder.
 +
 
 +
[[image:vscode_add_folder.png|center]]
 +
 
 +
 
 +
Use menu <big>File > Add Folder to Workspace …</big>
 +
 
 +
 
 +
[[image:vscode_menu_add_folder_workspace.png|center]]
 +
 
 +
 
 +
Browse to an existing new (empty) folder or simply create one from the dialog:
 +
 
 +
[[image:vscode_add_blinky_folder.png|center]]
 +
 
 +
 
 +
<big>Add a new file: main.c</big>
 +
 
 +
 
 +
[[image:vscode_add_new_file.png|center]]
 +
 
 +
 
 +
Implement the main function, then save it (CTRL+S)
 +
 
 +
 
 +
==== Sample Project ====
 +
<big>You can download sample project from</big> [{{SERVER}}/emsys/vscode/vscode-tm4c-blinky.zip <big>here</big>]
 +
 
 +
=== References ===
 +
* [https://code.visualstudio.com/docs/editor/workspaces workspaces]
 +
* [https://code.visualstudio.com/docs/getstarted/settings User and Workspace Settings]

Latest revision as of 04:37, 9 April 2022


VSCode - Workspace and Project(s)

Similar to other IDEs, Visual Studio Code is using the concept of a ‘workspace’. In simple words, a workspace is a collection of Folders open in the IDE. See workspaces for more details. In the most simple case a workspace just contains a folder which is the folder for the project. So all what we need is to add a folder.

Vscode add folder.png


Use menu File > Add Folder to Workspace …


Vscode menu add folder workspace.png


Browse to an existing new (empty) folder or simply create one from the dialog:

Vscode add blinky folder.png


Add a new file: main.c


Vscode add new file.png


Implement the main function, then save it (CTRL+S)


Sample Project

You can download sample project from here

References