- 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.
推薦閱讀
- Mastering Ext JS(Second Edition)
- Deploying Node.js
- Mastering Entity Framework Core 2.0
- GraphQL學習指南
- 跟老齊學Python:輕松入門
- C語言程序設計教程(第2版)
- 機器人Python青少年編程開發實例
- Visual Basic程序設計教程
- 深入理解Java7:核心技術與最佳實踐
- 網站構建技術
- Mastering Xamarin.Forms(Second Edition)
- C++20高級編程
- .NET Standard 2.0 Cookbook
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Drupal 8 Development Cookbook(Second Edition)