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: ls/editors/code/package.json
+52-1Lines changed: 52 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,58 @@
19
19
"contributes": {
20
20
"configuration": {
21
21
"title": "YARA",
22
-
"properties": {}
22
+
"properties": {
23
+
"YARA.codeFormatting": {
24
+
"type": "object",
25
+
"default": {
26
+
"alignMetadata": true,
27
+
"alignPatterns": true,
28
+
"indentSectionHeaders": true,
29
+
"indentSectionContents": true,
30
+
"newlineBeforeCurlyBrace": false,
31
+
"emptyLineBeforeSectionHeader": false,
32
+
"emptyLineAfterSectionHeader": false
33
+
},
34
+
"description": "Options for automatic code formatting.",
35
+
"properties": {
36
+
"alignMetadata": {
37
+
"type": "boolean",
38
+
"default": true,
39
+
"markdownDescription": "Aligns the values in the `meta` section of a rule.\n\n**Example:**\n\n*Original code:*\n```yara\nrule example {\n meta:\n author = \"John Doe\"\n creation_date = \"2024-01-01\"\n description = \"A simple example rule.\"\n}\n```\n\n*Formatted code:*\n```yara\nrule example {\n meta:\n author = \"John Doe\"\n creation_date = \"2024-01-01\"\n description = \"A simple example rule.\"\n}\n```"
40
+
},
41
+
"alignPatterns": {
42
+
"type": "boolean",
43
+
"default": true,
44
+
"markdownDescription": "Aligns the patterns in the `strings` section of a rule.\n\n**Example:**\n\n*Original code:*\n```yara\nrule example {\n strings:\n $a = \"some string\"\n $b_is_longer = { 48 65 6c 6c 6f }\n $c = \"another string\"\n}\n```\n\n*Formatted code:*\n```yara\nrule example {\n strings:\n $a = \"some string\"\n $b_is_longer = { 48 65 6c 6c 6f }\n $c = \"another string\"\n}\n```"
0 commit comments