【6月日新计划08】WPF入门-Shortcut keys && Alarm processing
1. Shortcut keys
1.1 字體和顏色
- 點擊工具 -> 選項
- 選擇環境 -> 字型和顏色
1.2 格式化
- 點擊工具 -> 選項 -> 文本編輯器 -> XAML -> Formatting -> Spacing -> 選擇第三條
- 然後按快捷鍵ctrl+K+D
- 或者直接安裝插件,插件模組 -> 搜索 xmal style
- 或者直接敲命令
ctrl+E ctrl+D
1.3 快速創建屬性
創建屬性和set/get方法 : propfull + 雙擊tab
創建set/get方法 : prop
如果構造方法裡面有屬性,如何快速創建:選中屬性 -> 鼠標右鍵,快速動作與重構 -> 建立並指派欄位xxxxx
2. Alarm processing
2.1 编译提示 无法将“obj\Debug*.”复制到“bin\Debug*.”,文件...正在由另一个进程使用
- 菜單欄選中專案
- 選擇最下面的,當前項目的屬性
- 在窗口中選擇建置事件,選擇建置前事件命令。輸入如下代碼。
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"
直接關閉服務
2.2 鍵盤敲字會覆蓋後面的內容
誤入Insert模式,點擊backspace旁邊的insert鍵取消