1# VS Code Extension For LLVM Dev 2 3## Features 4 - LLVM IR files (.ll) syntax highlighting. 5 (manually translated from `llvm/utils/vim/syntax/llvm.vim`) 6 - TableGen files (.td) syntax highlighting. 7 (translated from `llvm/utils/textmate`) 8 - PatternMatchers for LIT test output. 9 (`$llvm-lit`, `$llvm-filecheck`) 10 - Tasks to run LIT on current selected file. 11 (`Terminal` -> `Run Task` -> `llvm-lit`) 12 13## Installation 14 15```sh 16sudo apt-get install nodejs-dev node-gyp npm 17sudo npm install -g typescript npx vsce 18``` 19 20### Install From Source 21```sh 22cd <extensions-installation-folder> 23cp -r llvm/utils/vscode/llvm . 24cd llvm 25npm install 26npm run vscode:prepublish 27``` 28`<extensions-installation-folder>` is OS dependent. 29 30Please refer to https://code.visualstudio.com/docs/editor/extension-gallery#_where-are-extensions-installed 31 32### Install From Package (.vsix) 33 34First package the extension according to 35https://code.visualstudio.com/api/working-with-extensions/publishing-extension#usage. 36 37Then install the package according to 38https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix. 39 40## Setup 41 42Set `cmake.buildDirectory` to your build directory. 43 44https://code.visualstudio.com/docs/getstarted/settings 45 46https://vector-of-bool.github.io/docs/vscode-cmake-tools/settings.html#cmake-builddirectory 47