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
Use the `proto3: Renumber Fields/Enum Values` command (via **Ctrl+Shift+P**) while the cursor is inside a message or enum. The command rewrites the numeric tags so that message fields count up from `1` and enum values start at `0`, saving the effort of manually editing values after inserting or removing entries.
45
+
Use the `proto3: Renumber Fields/Enum Values` command (via **Ctrl+Shift+P**) while the cursor is inside
46
+
a message or enum. The command rewrites the numeric tags so that message fields count up from `1` and
47
+
enum values start at `0`, saving the effort of manually editing values after inserting or removing entries.
49
48
50
49
### Syntax Highlighting
51
50
@@ -61,45 +60,45 @@ to tell the extension the full path of protoc if it is not in `path`.
61
60
62
61
Below is an example settings.json file which comes from
| config.\*| Refer settings items in `Preferences`. |
100
+
| env.\*| Refer environment variable. |
101
+
| workspaceRoot | Returns current workspace root path. |
103
102
104
103
### Code Completion
105
104
@@ -155,9 +154,11 @@ The following snippets are based on
155
154
156
155
Support "Format Document" if `clang-format` is in path, including custom `style` options.
157
156
158
-
By default, `clang-format`'s standard coding style will be used for formatting. To define a custom style or use a supported preset add `"clang-format.style"` in VSCode Settings (`settings.json`)
157
+
By default, `clang-format`'s standard coding style will be used for formatting. To define a custom
158
+
style or use a supported preset add `"clang-format.style"` in VSCode Settings (`settings.json`).
159
+
160
+
### Example usage
159
161
160
-
### Example usage:
161
162
`"clang-format.style": "google"`
162
163
163
164
This is the equivalent of executing `clang-format -style=google` from the shell.
@@ -172,7 +173,8 @@ For further formatting options refer to the [official `clang-format` documentati
172
173
173
174
Auto-completion not works in some situations.
174
175
175
-
Some users consistently see an error like `spawnsync clang-format enoent` when they save. This happens when the "formatOnSave"-setting is enabled in VSCode and "clang-format" cannot be found. To fix this:
176
+
Some users consistently see an error like `spawnsync clang-format enoent` when they save. This happens
177
+
when the "formatOnSave"-setting is enabled in VSCode and "clang-format" cannot be found. To fix this:
0 commit comments