- Lua Quick Start Guide
- Gabor Szauer
- 446字
- 2021-08-05 10:30:34
Exploring VS Code
It's important to be familiar with the tools you use. While Visual Studio Code is primarily a text editor, it does boast a rather large set of IDE-like features. VS Code can easily become overwhelming if you are not familiar with using it.
Visual Studio Code is a powerful text editor with many advanced features. If you are interested in learning more about the editor than this section covers, visit the online basics guide at https://code.visualstudio.com/docs/editor/codebasics.
Follow these steps to gain some familiarity and intuition with Visual Studio Code:
- When you open up Visual Studio Code, you are greeted with either the last open documents, the welcome page, or if you have no documents open and the welcome page is disabled, the default window.
- The icons on the left side of the screen make up what is called the View bar. Clicking any of the items on the View bar will cause a side bar to become visible:

- The first item on the View bar is the Explorer. You can use the Explorer to open a folder and View all of the files in that folder in one convenient list. We will use this feature of the editor throughout the next few chapters:

- The search item on the bar will let you search for and replace text in either open documents, or documents inside of the currently open folder.
- The GIT item on the View bar will only be available if the currently open folder is a git repository. VS Code has excellent git integration! While source control solutions such as git are outside the scope of this book, using some kind of source control is highly recommended:

- The DEBUG sidebar gives VS Code IDE features such as break points and a watch window:

- Finally, the EXTENSIONS item will show you a side bar that can be used to View, manage, and install new extensions in Visual Studio Code:

- To make a new file, simply select File > New File.
- This opens a new file, in a new tab. This file has no syntax highlighting yet. To assign a syntax, click on the Plain Text label in the bottom-right of the code tab, then select Lua (lua) from the drop-down menu that appears:

- If at any point you open a file and it does not have proper syntax highlighting, you can follow the previous step to force the file to have Lua syntax highlighting. In the previous step, we set the syntax of the file manually. If you save a file with a .lua extension, the next time the file is opened, it will automatically use Lua syntax highlighting.
推薦閱讀
- Java EE 6 企業級應用開發教程
- vSphere High Performance Cookbook
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- 從0到1:HTML+CSS快速上手
- PHP 編程從入門到實踐
- Mastering Unity Shaders and Effects
- INSTANT Django 1.5 Application Development Starter
- C語言程序設計學習指導與習題解答
- Swift Playgrounds少兒趣編程
- Spring核心技術和案例實戰
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- PHP+Ajax+jQuery網站開發項目式教程
- Android Sensor Programming By Example
- Scala Functional Programming Patterns
- 嵌入式Linux C語言程序設計基礎教程