在Visual Studio 菜单栏上,选择工具>选项>文本编辑器,然后选择正在使用的语言或所有语言。 “所有语言”在所有受支持的编程语言中打开或关闭行号。 也可以在 Visual Studio搜索框中键入“行号”,然后在结果中选择“打开或关闭行号”。 选中行号复选框以显示行号,或清除复选框以隐藏行号。
您也可以在 Visual Studio搜尋方塊中輸入行號,然後在結果中選擇「開啟或關閉行號」。 選取[行號] 複選框以顯示行號,或清除複選框以隱藏行號。 注意 行號不會新增至您的代碼。 它們只是為了參考。 相關內容 程式代碼編輯器功能 意見反應 此頁面對您有幫助嗎?
How do I display the line numbers in VS 2008? How do I find a component ID? How do I move my Visual Studio 2015 license to my new PC? How do I remove a license from Visual Studio 2019? How do I restore a message box that was marked "do not show this message again"? How do...
Display Line Numbers in Code See Also 备注 This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, seeVisual Studio documentation. We recommend upgrading to the latest version of Visual Studio.Download it here ...
To turn on the feature of "line numbers" in Visual Studio, please go toToolsmenu >> Options >> Text Editor >> Choose the Editor that you want to show "line numbers" (e.g. C#) >> General >> Check "Line Numbers". Hope this helps! If yo...
( &offset ); pLine->get_lineNumber( &linenum ); printf( "\tline %d at 0x%x:0x%x\n", linenum, seg, offset ); pLine = NULL; if ( firstLine ) { // sanity check CComPtr< IDiaEnumLineNumbers > pLinesByLineNum; if ( SUCCEEDED( pSession->findLinesByLinenum( pComp, pSrc, linenum, 0...
Release notes for the latest features and improvements in Visual Studio 2017 v15.9. Plan better, code together and ship faster with Visual Studio.
Release notes for the latest features and improvements in Visual Studio 2017 v15.9. Plan better, code together and ship faster with Visual Studio.
a new guard page for the stack cannot be created visual studio 2019 A potentially dangerous Request.Form value was detected from the client (Text="what?"). ValidateInput(false) not working? A required anti-forgery token was not supplied or was invalid About ModelState.IsValid Abstract methods...
Visual Studio 2015 Releases Visual Studio 2015 Update 2 Summary of What's New in this Release What's New in this Release Show 2 more License Terms | Visual Studio Blog | Developer Community Note This is not the latest version of Visual Studio. To download the latest release, please...