EpicSkookumScript / EpicSkookumScript/SkookumScript-Plugin

Auto-closing brackets, quotes, etc.

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
SkookumIDE
主要言語
C++
スター
138
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

説明

**Is your feature request related to a problem? Please describe.**
Most IDEs automatically type in the closing bracket/parenthesis/quote/etc when the user types in the opening one, and places the cursor between them. Getting used to the Sk IDE not doing that is proving to be quite hard.

**Describe the solution you'd like**
When I press `[` I'd like the IDE to insert `[]` instead, and place my cursor in the middle `[|]`. Same goes for `"` to `""`, `'` to `''`, `(` to `()`, and so on.

Bonus points, if after having the cursor between brackets `[|]` and pressing enter, the code gets expanded to
```
[
|
]
```
instead of
```
[
|]
```

**Describe alternatives you've considered**
There isn't really an alternative. Unless, uh, an AHK script? Sounds like a way overengineered solution for what seems like a simple change to make to the IDE.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。まず Sk IDE のテキスト入力とキー処理のエントリポイントを見つけ、次にカーソル移動と改行がどのように処理されているかを確認してください。完了条件は、開き角括弧と閉じ角括弧、開き丸括弧と閉じ丸括弧、開き引用符と閉じ引用符がカーソルを間に置いた状態で対応付けられ、Enter で要求された複数行への展開が行われることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。