In English
Formatting the files below in the workspace:
- Format TypeScript and JavaScript files:
- `eslint.config.mjs`
- `webpack.config.js`
- `src/**/*.ts`
- `src/**/*.js` except `src/lib/tyrano_parser.js`
- Format configuration files for this VSCode workspace:
- `.vscode/*.json`
- Format configuration files for the VSCode extension settings:
- `tsconfig.json`
- `snippet/*.json`
- `syntaxes/*.json`
- `contributes` in `package.json`
- `Tooltip/*.json`
- `language-configuration*.json`
Steps:
1. (Optional) Execute `npm ci` or `npm install`
2. (Optional) Change the value of `editor.formatOnSaveMode` from `modificationsIfAvailable` to `file` for a specific file extension (e.g. `[json]`)
3. Open the file needed to format (e.g. Open `tsconfig.json`)
4. Open the command palette by pressing `Ctrl + P`
5. Run the command `Format Document (Forced)` on the file
6. Remove any relevant lines from `.prettierignore` (e.g. remove line for `tsconfig.json`)
ワークスペース内の次のファイルをフォーマットしましょう:
eslint.config.mjs
webpack.config.js
src/**/*.ts
src/**/*.js
.vscode/*.json
tsconfig.json
snippet/*.json
syntaxes/*.json
package.json
のcontributes
Tooltip/*.json
language-configuration*.json
手順:
npm ci
またはnpm install
を実行します。editor.formatOnSaveMode
の値をmodificationsIfAvailable
から特定のファイル拡張子(例:[json]
)のためにfiles
に変更します。tsconfig.json
を開く)。Ctrl + P
を押してコマンド パレットを開きます。Format Document (Forced)
」コマンドを実行します。.prettierignore
から関連する行を削除します(例:tsconfig.json
の行を削除します)。In English
Formatting the files below in the workspace: - Format TypeScript and JavaScript files: - `eslint.config.mjs` - `webpack.config.js` - `src/**/*.ts` - `src/**/*.js` except `src/lib/tyrano_parser.js` - Format configuration files for this VSCode workspace: - `.vscode/*.json` - Format configuration files for the VSCode extension settings: - `tsconfig.json` - `snippet/*.json` - `syntaxes/*.json` - `contributes` in `package.json` - `Tooltip/*.json` - `language-configuration*.json` Steps: 1. (Optional) Execute `npm ci` or `npm install` 2. (Optional) Change the value of `editor.formatOnSaveMode` from `modificationsIfAvailable` to `file` for a specific file extension (e.g. `[json]`) 3. Open the file needed to format (e.g. Open `tsconfig.json`) 4. Open the command palette by pressing `Ctrl + P` 5. Run the command `Format Document (Forced)` on the file 6. Remove any relevant lines from `.prettierignore` (e.g. remove line for `tsconfig.json`)