This could be because you don’t have a package installed which provides it, or you do but that package is set to be ignored. If that doesn’t show you the syntax that you want, then it’s not currently available. Start typing name of the package you want to remove and select it from the list of installed packages. You can also do this from the Command Palette the entries there are prefixed with “Set Syntax:”, for example “Set Syntax: JSON”. Use ctrl + shift + p shortcut for ( Win, Linux) or cmd + shift + p for ( OS X ). If that doesn’t have the name of the language you’re using, you can click it to open up a menu that lets you select what language you want to use. The bottom right of the status bar tells you what syntax it thinks the current file is (for example it says JSON for the window where you’re editing your settings or “Plain Text” when you first open a tab). So for example if you haven’t saved the file yet, it doesn’t have a name internally and so Sublime won’t know how to syntax highlight it.Īssuming that’s not the case, you need to check to see that the proper syntax is set. Normally this gets picked up by the extension of the file that you’re editing. Do not delete these they are required for npm to work. Syntax highlighting is determined based on the sort of file that you’re editing. When you install packages, npm creates two files: package.json and (optionally) package-lock.json.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |