在Visual Studio 2019中編寫C語言代碼,在定義指針變量的時候,星號*總是自動跑到左邊去,很煩人。比如char *s自動變成char* s。
關閉這個自動格式化代碼的功能的方法是,選擇Tools菜單中的Options命令,在Text Editor -> C/C++ -> Formatting -> General中取消勾選所有的Automatically indent和Automatically format就可以了。
在Visual Studio 2019中編寫C語言代碼,在定義指針變量的時候,星號*總是自動跑到左邊去,很煩人。比如char *s自動變成char* s。
關閉這個自動格式化代碼的功能的方法是,選擇Tools菜單中的Options命令,在Text Editor -> C/C++ -> Formatting -> General中取消勾選所有的Automatically indent和Automatically format就可以了。