Skip to content

Commit 23c1e8c

Browse files
committed
Init
0 parents  commit 23c1e8c

16 files changed

+1488
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
out/

.vscode/launch.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"configurations": [
3+
{
4+
"args": [
5+
"--extensionDevelopmentPath=${workspaceFolder}"
6+
],
7+
"name": "Launch Extension",
8+
"outFiles": [
9+
"${workspaceFolder}/out/**/*.js"
10+
],
11+
"preLaunchTask": "compile",
12+
"request": "launch",
13+
"type": "extensionHost"
14+
}
15+
]
16+
}

.vscode/tasks.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "compile",
7+
"problemMatcher": [
8+
"$tsc"
9+
],
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
},
14+
"label": "compile"
15+
},
16+
{
17+
"type": "npm",
18+
"script": "test",
19+
"problemMatcher": [],
20+
"group": {
21+
"kind": "test",
22+
"isDefault": true
23+
},
24+
"label": "test"
25+
}
26+
]
27+
}

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Git Commit Message Formatter
2+
3+
This is a Visual Studio Code extension that formats git commit messages.
4+
5+
## Features
6+
7+
- Formats git commit messages according to a predefined style.
8+
- Works on any file type.
9+
10+
## How to use
11+
12+
1. Install the extension in VS Code.
13+
2. Open a git commit message file.
14+
3. Use the `Format Document` command (`Shift + Alt + F` on Windows, `Shift + Option + F` on macOS) to format the git commit message.
15+
16+
## Development
17+
18+
### Prerequisites
19+
20+
- Node.js
21+
- Visual Studio Code
22+
23+
### Setup
24+
25+
1. Clone the repository.
26+
2. Run `npm install` to install the dependencies.
27+
3. Open the project in VS Code.
28+
29+
### Build
30+
31+
Run `npm run compile` to compile the TypeScript code.
32+
33+
### Debug
34+
35+
1. Press `F5` to start debugging the extension.
36+
2. Open a git commit message file.
37+
3. Use the `Format Document` command to format the git commit message.
38+
39+
### Test
40+
41+
Run `npm test` to run the tests.
42+
43+
## Contributing
44+
45+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
46+
47+
## License
48+
49+
[MIT](https://choosealicense.com/licenses/mit/)

out/extension.js

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/extension.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/gitCommitMessageFormatter.js

+68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/gitCommitMessageFormatter.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/test/extension.test.js

+39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/test/extension.test.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)