Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode configuration file isn't work properly #214

Open
oopooa opened this issue Jun 29, 2024 · 0 comments
Open

vscode configuration file isn't work properly #214

oopooa opened this issue Jun 29, 2024 · 0 comments

Comments

@oopooa
Copy link

oopooa commented Jun 29, 2024

The vscode configuration file isn't taking effect in my project. Even though I have specified in the .autocorrectrc file that space-bracket should be 0 to prevent adding spaces between "int" and "[]", the space always reappears when I save the file. This indicates that the configuration file is not working as expected.

Environments

  • OS: windows 10
  • VsCode Version: 1.90.2
  • AutoCorrect Plugin Version: v2.6.4

Directory tree

temptest
 ├── test.md
 └── .autocorrectrc

The .autocorrectrc file is located in the root directory of the project.

Test case

test.md

int [] nums = [1, 5, 7, 11], 循环三次的 map 结果是 {1 = 0, 5 = 1, 7 = 2}

.autocorrectrc

rules:
  # Auto add spacing between CJK (Chinese, Japanese, Korean) and English words.
  # 0 - off, 1 - error, 2 - warning
  space-word: 1
  # Add space between some punctuations.
  space-punctuation: 1
  # Add space between brackets (), [] when near the CJK.
  space-bracket: 0

Troubleshooting Steps Taken

  1. restarted vscode, not work.
  2. attempted to reload window using Ctrl + Shift + P, not work.

Is there something I missed in order to make the configuration work properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant