You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/adding-visual-studio-editor-support-for-other-languages.md
+10-15Lines changed: 10 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Add editor support for other languages
3
3
description: Learn about how the Visual Studio editor supports reading and navigating through different computer languages and how you can add support for other languages.
4
-
ms.date: 11/04/2016
4
+
ms.date: 5/02/2025
5
5
ms.topic: conceptual
6
6
helpviewer_keywords:
7
7
- syntax colorization
@@ -68,31 +68,26 @@ Visual Studio currently provides syntax colorization and basic statement complet
68
68
In addition to syntax colorization and basic statement completion, Visual Studio also has a feature called [Navigate To](/archive/blogs/benwilli/visual-studio-tip-3-use-navigate-to). This feature enables you to quickly search code files, file paths, and code symbols. Visual Studio provides Navigate To support for the following languages.
69
69
70
70
- C#
71
-
72
71
- C++
73
-
74
72
- TypeScript
75
-
76
73
- JavaScript
77
-
78
74
- Visual Basic
79
-
80
75
- Go
81
-
82
76
- Java
83
-
84
77
- PHP
85
78
86
-
All of these file types have the features described earlier even if support for a given language hasn't yet been installed. Installing specialized support for some languages may provide additional language support, such as IntelliSense or other advanced language features like light bulbs.
79
+
All of these file types have the features described earlier even if support for a given language isn't yet installed. Installing specialized support for some languages may provide additional language support, such as IntelliSense or other advanced language features like light bulbs.
87
80
88
-
## Add support for non-supported languages
81
+
## Add support for nonsupported languages
89
82
90
83
Visual Studio provides language support in the editor by using [TextMate Grammars](https://manual.macromates.com/en/language_grammars). If your favorite programming language currently isn't supported in the Visual Studio editor, first, search the web—a TextMate bundle for the language may already exist. If you can't find one, though, you can add support for it yourself by creating a TextMate bundle model for language grammars and snippets.
91
84
92
85
Add any new TextMate Grammars for Visual Studio in the following folder:
93
86
94
87
*%userprofile%\\.vs\Extensions*
95
88
89
+
> In Windows, *%userprofile%* resolves to the path: *c:\Users\\\<user name>*. If the *Extensions* folder does not exist on your system, you need to create it. If the folder already exists, it is hidden.
90
+
96
91
Under this base path, add the following folders if they apply to your situation:
97
92
98
93
|Folder Name|Description|
@@ -106,12 +101,12 @@ In Windows, *%userprofile%* resolves to the path: *c:\Users\\\<user name>*. If t
106
101
> [!TIP]
107
102
> If you have any files open in the editor, you'll need to close and reopen them to see syntax highlighting after you add the TextMate Grammars.
108
103
109
-
For details about how to create TextMate Grammars, see [TextMate - Introduction to Language Grammars](https://developmentality.wordpress.com/2011/02/08/textmate-introduction-to-language-grammars/) and [Notes on how to create a Language Grammar and Custom Theme for a Textmate Bundle](https://benparizek.com/notebook/notes-on-how-to-create-a-language-grammar-and-custom-theme-for-a-textmate-bundle).
104
+
For details about how to create TextMate Grammars, see [TextMate - Introduction to Language Grammars](https://developmentality.wordpress.com/2011/02/08/textmate-introduction-to-language-grammars/) and [Notes on how to create a Language Grammar and Custom Theme for a TextMate Bundle](https://benparizek.com/notebook/notes-on-how-to-create-a-language-grammar-and-custom-theme-for-a-textmate-bundle).
110
105
111
106
## Related content
112
107
113
108
-[Add a Language Server Protocol extension](../extensibility/adding-an-lsp-extension.md)
114
-
-[Walkthrough: Create a code snippet](../ide/walkthrough-creating-a-code-snippet.md)
0 commit comments