4
鍵入以下到Visual Studio 2010後,LINQ查詢格式在Visual Studio
using(var myEntities = new MyEntities())
{
IQueryable<Employee> employees =
from e in myEntities.Employees
where e.Name == name &&
e.Password == hasher.ComputeHash(password)
select e;
... Code left out for simplicity ...
我遇到的格式問題,當我進入右括號。具體來說,文本編輯器重新格式化的空間在我的LINQ查詢,這樣我結束了,
using(var myEntities = new MyEntities())
{
IQueryable<Employee> employees =
from e in myEntities.Employees
where e.Name == name &&
e.Password == hasher.ComputeHash(password)
select e;
... Code left out for simplicity ...
}
是否可以更改打印格式設置一些適用於Visual Studio,以防止我的LINQ查詢的空間被自動刪除嗎?我嘗試過使用谷歌搜索這個,我已經通過Visual Studio的工具 - >選項窗口查看,但無法找到任何東西。希望我只是忽略了一些...
非常感謝提前!
謝謝布倫特,我認爲你是對的。 – Andrew