-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 1.82 KB
/
Copy pathpackage.json
File metadata and controls
57 lines (57 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "java-smart-indent",
"displayName": "Java Smart Indent",
"description": "Eclipse JDT-style bracket-aware auto-indentation for Java in VS Code",
"version": "0.1.0",
"publisher": "local",
"engines": {
"vscode": "^1.85.0"
},
"categories": ["Other"],
"activationEvents": ["onLanguage:java"],
"main": "./out/extension.js",
"contributes": {
"keybindings": [
{
"command": "javaSmartIndent.enter",
"key": "enter",
"when": "editorTextFocus && !editorReadonly && editorLangId == java && !suggestWidgetVisible && !inSnippetMode && !editorHasMultipleSelections"
},
{
"command": "javaSmartIndent.closingBrace",
"key": "shift+]",
"mac": "shift+]",
"when": "editorTextFocus && !editorReadonly && editorLangId == java && !suggestWidgetVisible && !inSnippetMode && !editorHasMultipleSelections"
}
],
"configuration": {
"title": "Java Smart Indent",
"properties": {
"javaSmartIndent.enabled": {
"type": "boolean",
"default": true,
"description": "Enable Eclipse JDT-style smart indentation for Java"
},
"javaSmartIndent.autoCloseBrace": {
"type": "boolean",
"default": true,
"description": "Automatically insert closing brace when opening brace is unclosed"
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"bundle": "esbuild src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"package": "npm run bundle && vsce package",
"vscode:prepublish": "npm run bundle"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.25.0",
"typescript": "^5.0.0"
}
}