Rider Align
Extension này giúp căn chỉnh các trường (fields) theo phong cách của JetBrains Rider.
Tính năng
- Căn chỉnh các trường trong code theo phong cách Rider
- Hỗ trợ phím tắt:
Ctrl+Alt+A (Windows/Linux) hoặc Cmd+Alt+A (Mac)
Cách sử dụng
- Chọn các dòng code cần căn chỉnh
- Nhấn
Ctrl+Alt+A (Cmd+Alt+A trên Mac)
- Các trường sẽ được căn chỉnh tự động
Yêu cầu
- VS Code phiên bản 1.85.0 trở lên
License
MIT
- Formats code automatically on save
- Supports manual formatting with keyboard shortcut
- Follows Rider's code style conventions
Spacing Rules
- Operators: Spaces around operators (
x = y + z )
- Keywords: Space between keyword and parenthesis (
if (condition) )
- Commas: Space after commas (
Method(x, y, z) )
- Generics: No spaces within angle brackets (
List<string> )
- Arrays: No spaces in array declaration (
int[] )
Method Parameters
| |