Move Code Alt+Up/Down This keyboard shortcut is new in Visual Studio 2013. Besides producing the documentation, GhostDoc will place boilerplate doc-comments in your code for you. Hell Dunkel Hoher Kontrast Vorherige Dokumentversionen; … Vielen Dank. … But this isn’t the only way they’ll want to consume these docs. It can comment in HTML, JavaScript, SQL, C#, CSS—you name it! Sorry, your blog cannot share posts by email. Quick Fix: editor.action.quickFix: Shift+F12: Show References: editor.action.referenceSearch.trigger: F2: Rename Symbol VS Code shortcuts vs code comment shortcut In vscode many time we have to comment/uncomment the line of code or block of code from time to time. You'll become familiar with its powerful editing, code intelligence, and source code control features and learn useful keyboard shortcuts. Usually, you’d use a multi-line comment in cases like this. Ctrl+M, Ctrl+O (collapse all) and Ctrl+M, Ctrl+P (expand all) are two of my favorites! Some screenshots are in order. One thing’s for sure when it comes to comments: your purpose varies depending on your reader. How to expand Emmet abbreviations and snippets In this article. Then click CTRL + K + C to apply comment on the selected code. Visual Studio Code is an amazing code editor made surprisingly by Microsoft. It will help … Think about it this way: a blacksmith uses a hammer to pound metal into shape, but they use their talents to craft something amazing and/or useful! This is the Visual Studio Code default keyboard shortcut list. Extensive wiki-style reference database for Shortcuts, Hotkeys, Cheatsheets. Normally, Ctrl+K, Ctrl+C will leave the comments in a nice column like in the following example: But notice a few not-so-nice trends in that sample? For information about configuring the name and location of the generated XML file, see Documenting your code with XML comments (C# Guide). Assembly queries related to “vs code python comment shortcut” html How to enable SSL in locahost using Visual Studio 2017? Get it now. Visual Studio for Mac.NET C++ Azure DevOps Azure DevOps Server (TFS) 0 What is the shortcut key for writing Python Comment in vs2017? How is the method typically used? You’ve got to see that for yourself if you’re not using it yet! Most of these tools will derive the documentation from your comments (for C# methods, ///). The keyboard shortcut for the command palette is given below. This code is built to make your consumers more productive. Keyboard shortcuts are keys or combinations of keys that provide an alternative way to do something. Phil Vuollet uses software to automate process to improve efficiency and repeatability. This post will delve into some details about context, language, and efficiency when it comes to comments in Visual Studio. Now that we have the mechanics down, what about the more cerebral factors? You can use a number of tools to automate your documentation. Opening and closing the sidebar 2. This, of course, is the default shortcut for Edit.CommentSelection, which can be mapped to whatever you’d like. Visual Studio is one of the best IDE for software developers and mostly preferred by C#,.NET developers, so in this article, I have provided useful shortcuts to be used in Visual Studio like comments shortcut, collapse or expand code region etc.eval(ez_write_tag([[728,90],'qawithexperts_com-box-3','ezslot_6',106,'0','0'])); If you are working with Visual Studio from quite some time, then you must have seen there is "+" ( when code is collapsed) and "-" ( when code is alread expanded) sign, in your code which let's you expand or collapse your classes/methods code, you can collapse all the regions of the file by clicking "Ctrl+M, Ctrl+O" in Visual Studio. 5 Great Visual Studio Keyboard Shortcuts. Basically, what you want to do with your documentation is put a bow on it. Here I am listing down all the keyboard shortcuts and cheats of Visual Studio Code editor for Windows, Mac and Linux Operating systems. If you want to know more about it, let us know in the comments below. Learn how GhostDoc can help to simplify your XML Comments, produce and maintain quality help documentation. I can't see any options in the menu bar. Shortcut key for comment in Visual Studio 2019 Select the piece of code that you would like to comment on. Visual Studio Code keyboard Shortcuts helps developers maximize their productivity by allowing them to work faster and more efficiently. Practice them. This is where your documentation comments can really make it or break it. First, get out your Alt key and hold that guy down while you use the cursor to “box select” the columns to the left of your code. Visual Studio Code(VSCode)でMarkdownを使用するにあたって,使用できる記法やTipsなどをまとめました。 公式ページのサポート情報について触れ,VSCodeで使用できる記法の一覧を掲載しています。最後には個人的なTipsも載せてみ Feedback senden und anzeigen für. … Search for command, for example, i want to create shortcut for closing solution then I will search and select "File.CloseSolution", Click inside textbox of "Press shortcuts keys" and specify your combination's key. At compile time, you can generate an XML file that contains the documentation comments. There's a good chance at least one of them will be new to you. Comment selection Ctrl+K,Ctrl+C Uncomment selection Ctrl+K,Ctrl+U. Reply 1 Go to top × Ctrl + C and paste somewhere else! So often, I’ve checked these comments for useful information only to be confronted with nothing at all! You can view all the “task” comments by typing the shortcut Ctrl+\,T. I’m going to stick to defaults, but later in this post, I’ll show you how to change those. Legal | About Us. Azure DevOps Server (TFS) 0. That means reinstalling Visual Studio and possibly losing your custom mappings! What is the shortcut key for writing Python Comment in vs2017? Visual Studio Code (VSCode) は、多くのプログラミング言語に対応しているソースコードエディタです。本ページは Visual Studio Code の導入から使い方までをわかりやすく解説する入門記 … Collapse to definitions: Ctrl+M,Ctrl+O If we use this shortcut then we can see the main program elements such as classes and methods. Earlier, we have shared Visual studio shortcuts in this site. Other Google Search. In order to do this, put yourself in the shoes of the consumer. It has features such as debugging, Git control, syntax highlighting, smart code completion, snippets and refactoring. Overview Version History Q & A Rating & Review. Think about that as you consider how to automate documentation. Überspringen Übermitteln. Click "Ctrl+W, Cltrl+S" to open solution explorer.eval(ez_write_tag([[300,250],'qawithexperts_com-box-4','ezslot_3',110,'0','0'])); Read: How to debug in visual studio? CodeIt.Right – Automated Code Review and Refactoring, Visual Studio Extensions: 7 You Should Check Out, C# Select and Where: Writing SQL-Style Queries in Code, Code Cleanup: 7 Simple Daily Steps That Pay off in the End, C# Documentation: A Start to Finish Guide, C# Inheritance: A Complete but Gentle Introduction, GhostDoc Pro Beta brings true Visual Editing to XML Comments, Visual Studio Comment Shortcuts: Efficiency Tips. Unfortunately, Visual Studio will only lay down several single-line comments instead. And consider their situation. By the click of a mouse, it adds an exceptional header comment to the file! There’s also a nice spellcheck feature in the pro version that helps keep you honest! But what if it’s a really useful comment? You can use "Ctrl+K, Ctrl+U" to uncomment the selected code. On Windows: The most important shortcuts are highlighted in red, like so: Shortcut. If you want to comment out any line in python (when using visual code) then the shortcut is: Ctrl + / (control button plus forward slash) What would you want to know by way of the documentation? Press // and voilà! And now you’ve got comments with a space! Auskommentieren von Code (Visual Studio unter Windows) Comment out code (Visual Studio on Windows) Ist diese Seite hilfreich? Visual Studio can help you document code elements such as classes and methods, by automatically generating the standard XML documentation comment structure. Visual Studio for Mac.NET. 質問をすることでしか得られない、回答やアドバイスがある。 15分調べてもわからないことは、質問しよう! Visual Studio Code のショートカット一覧を探していて英語版の良さそうな物を見つけたのですが、これの日本語版はどこかにありますか? I’ve fat-fingered method names enough times to cause embarrassment! this is very short and crisp video about how you can create HTML basic structure using shortcut in visual studio code. Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly, Site design/Logo © 2021 - Qawithexperts.com . With that, you have everything you need to automate the documentation! Visual Studio Code Comment Shortcuts, Vs Code Comment Shortcuts in windows . You can define code style settings per-project by using an EditorConfig file, or for all code you edit in Visual Studio on the text editor Options page.For C# code, you can also configure Visual Studio to apply these code style preferences using the Code Cleanup (Visual Studio 2019) and Format Document (Visual Studio 2017) commands. Visual Studio shortcut keys A handy shortcut key reference to make your .NET lifestyle easier and more productive. Und darauf eingehen. Ich werde die meisten davon in den kommenden Blogposts erklären. Visual Studio shortcut keys. We developers need to help each other out. That will remap the command to Ctrl+/ so you don’t have to flub back and forth if you use both IDEs. Visual Studio Codeのショートカットキー(キーボードショートカット)の一覧です。Visual Studio Codeには便利なショートカットキーが豊富に用意されています。本記事では、Windows、macOS、Linuxでの What if you want to comment multiple lines but leave some space before the code? "Ctrl-K, Ctrl-C", to comment out the current selected lines, Take a look the below image, which shows how code is commented and then uncommented using Visual Studio keyboard shortcuts. Feedback zu allen Seiten anzeigen. Yes No. It doesn’t, however, leave a space between the comment characters and your code; this has been known to upset JS linters that like to see that space by default. 122 Shortcuts for Visual Studio Code. We can select a block of code and use the key sequence Ctrl+K+C, it will comment out the section of code., it will comment out the section of code. Visual Studio Code keyboard Shortcuts helps developers maximize their productivity by allowing them to work faster and more efficiently. Show Command P alette. Comment out selection or current line Ctrl + / Usually, I use the keystroke Ctrl +K, Ctrl + C And And some of these tools even help you start those comments. Switching workspaces 5. The annotations are linked to the check-in, so you’ll see the check-in comment along with each line annotation. You can map comment commands to a different keyboard shortcut in the Tools > Options menu. Visual Studioのインデントショートカット サブライムテキスト3のコメント行のキーボードショートカット Visual Studio Code内で行または選択範囲を複製するにはどうすればよいですか? Getting error 'Git failed with a fatal error' in Visual Studio 2017 when using Git for windows. They need to do X with your assembly or API so they don’t have to write their own code to do X. Copy. Then click CTRL + K + C to apply comment on the selected code. Ich wollte an einer zentralen Stelle alle Microsoft Visual Studio Code Keyboard Shortcuts ablegen. Functional Programming in C#: Map, Filter, and Reduce Your Way to Clean Code, StyleCop: A Detailed Guide to Starting and Using It. Visual Studio Shortcut keys for Comments. Why are there so many places for comments? Get code examples like "vs code python comment shortcut" instantly right from your google search results with the Grepper Chrome Extension. Go to line 8. Use the tools to support your craft. Visual Studio for Mac.NET C++ Azure DevOps Azure DevOps Server (TFS) 1 Toggle line comment shortcut not functional visual studio 2019 version 16.3 preview 2 … You can simply use "Ctrl+K+C" to comment the current line of code or selected code. Here I am listing down all the keyboard shortcuts and cheats of Visual Studio Code editor for Windows, Mac and Linux Operating systems. Here, I’m commenting code, so it’s not that much of a problem. Cheese sheet of TweenMAX, TweenLite, TimelineLite, TimelineMax by GreenSock. You can simply use "Ctrl+K+C" to … More Info. Perhaps you’ve left an important note to your colleagues or future self explaining some odd block of code. In this article, I will discuss various Visual Studio Code keyboard shortcuts that we can use while working on a Windows PC. Here in this post, we will see some keyboard shortcuts for visual studio code which might … ( Tutorial to debug C# code ), Solving error "the breakpoint will not currently be hit" in Visual studio ( Multiple ways), Generate Class from XSD in C# (Using CMD or Visual Studio), Hello World C# program with explanation of code. Ctrl + Shift + P / F1. It’s one thing to “check the boxes,” but if you really want to help out your fellow developers, you’ve got to do a bit more. And to round it out, the mapping for uncommenting is Ctrl+K, Ctrl+U. Take a look the below image, which shows how code is commented and then uncommented using Visual Studio keyboard shortcuts. You may be aware that the Ctrl+K, Ctrl+C chord creates a comment, but there’s a bit more magic to it than the shortcut alone. Post was not sent - check your email addresses! Some common types of comments are the header comments, code comments, and XML documentation comments. This is no substitute for keen organization, but it can get a lot of the comments out of the way so you can center up and focus on the code. Those are the keystrokes. File explorer 3. The command palette 10. Design. 1. From there, it’s up to you through good design and good documentation practices to deliver quality documentation to your customer. Here are five of my favorite keyboard shortcuts in Visual Studio. Ctrl+F allow you to search for the current selected code, while Ctrl+Shift+F allows you to search complete solution, Use Ctrl+F4 to close the current Selected tab (file). Support for Emmet snippets and expansion is built right into Visual Studio Code, no extension required. Visual Studio Code is the go-to code editor for Salesforce developers. Thanks! For one thing, there’s the “missing” comment line with no // and the comment characters are right up against the code. Just use Ctrl+Shift+D to start documenting your code! Shortcut key for comment in Visual Studio 2019 Select the piece of code that you would like to comment on. Other On this It is So far, we’ve focused on the mostly internal comment shortcuts. The internal stuff can be a little loose at times. Comment Divider This is Visual Studio Code extension, which provides commands for generating comment-wrapped separators from line content. But what about using other shortcuts to make yourself more efficient? You can also use "Ctrl+Shift+Enter" to add blank line below the current cursor position.eval(ez_write_tag([[300,250],'qawithexperts_com-leader-1','ezslot_8',113,'0','0'])); You can also create your custom Shortcuts in Visual Studio as per you needs, to do this, follow these steps: I will keep updating it in future, but if you have any interesting and useful VS shortcut key in mind, feel free to comment it down below. Go to file 7. windows 10.0 Python visual studio. Visual Studio IntelliSense Not Working? Also, we put comments on commits, check-ins, code reviews, and on work items in whatever work tracking system we use. I would eventually either delete that code or remove the comments. Shortcuts. Please do check if you are interested. how to disable "Chrome script debugging in Visual Studio is enabled" in Visual Studio 2017? Command Command id; Ctrl+Space: Trigger Suggest: editor.action.triggerSuggest: Ctrl+Alt+F: Format Code: editor.action.format: Ctrl+F12: Go to Definition: editor.action.goToDeclaration: Alt+F12: Peek Definition: editor.action.previewDeclaration: Ctrl+. You can see the changes to a file by showing annotations in Visual Studio. That all depends on what you’ve selected with your cursor. Shortcut key for uncomment in Visual Studio 2019 Are there any known performance limitations? Just type /// (”’ for VB) above the method, property, or class, and Visual Studio puts a template-based XML comment block in there for you! Visual Studio Code Keyboard Shortcuts. This beats going through each method and pressing /// or ”’ for each one. He writes about topics relevant to technology and business, occasionally gives talks on the same topics, and is a family man who enjoys playing soccer and board games with his children. Copied to clipboard. Export Shortcut Pages as PDF or Spreadsheet Please provide name to post comment as guest. You will find these shortcuts That makes it tough to read. Give a shot. A handy shortcut key reference to make your .NET lifestyle easier and more productive. SubMain.com | Products | Downloads | Support | Contact, © 2020 SubMain Software. By now, we all know Ctrl+C and Ctrl+V like the backs of our hands. The most important shortcuts are highlighted in red, like so: Shortcut. It is lots of features and it can be used for searching a file by name, going to a specific line, and accessing different settings in Visual Studio Code. You can still edit this shortcut! It's free and Optionally, add email to receive replies and visual studio code python how to get source code of import module definitian umen 2 768 Jun-13-2020, 06:20 PM Last Post: umen How to create a shortcut of your python program on your phone screen (using Q3Python) Alexx 0 Commenting code is the part of your craft that’s visible to your consumers (both internal and external). Ctrl+End. You are probably working 8 hours every workday and hopefully for you the most time of these working hours you can code. The command palette is one of the most useful tools in the Visual Studio Code. To just indent (shift right) without auto-formatting, use ⌘] As in Keyboard Shortcuts (⌘K ⌘S, or from the menu as shown below) gizak | 12,769 installs | (4) | Free. Feedback. Dieses Produkt Diese Seite. (Tutorial to debug C# code), This is really excellent and loving way to add condition around the code, click "Ctrl+K+S", then you will see condition content menu, select any condition from that, here is the demo. Know them.Now, Visual Studio knows how to comment in several languages. This editor has easy-to-install extensions for syntax highlighting, code completion, and more. Visual Studio Code provides a rich and easy keyboard shortcuts editing experience using Keyboard Shortcuts editor. You can change the scheme to something else, like Visual Studio Code. Shortcut Description Ctrl-X or Shift-Delete Hi, I am using Visual Studio 2019 as my IDE for writing python codes. C++. Get Tips, News and Product Info Right To Your Inbox! If you’re looking for reasons why you should know this, Mark Henke does a nice job explaining four good reasons. This includes a lot of nice information about when it was last modified and by whom, along with a starter for additional comments on the file itself. Visual Studio Code keyboard shortcuts are helpful to the developers in working faster and more efficiently and for boosting their working performance. While we’re at it, let’s make those comments as useful as possible! This is a good place to look for smells by the way. You can also remap or apply shortcuts individually, but this can be a bit of a pain unless you save your mappings. This is another interesting shortcut key, using which you can move current line of code, up or down, use "Alt+ ↑ / ↓" to do thiseval(ez_write_tag([[300,250],'qawithexperts_com-banner-1','ezslot_5',111,'0','0'])); You might need this shortcut very often, basically "Ctrl + Shift +F" open new dialog to search a term in Files. Visual Studio Code is full of tricks and features that make the life of the developer very easy. That’s right, I’m talking about Visual Studio comment shortcuts. There are all kinds of code comments out there. (Tutorial to debug C# code), Quick Tip to convert JSON into class object, How to debug in visual studio? If only there was a keyboard shortcut for that. It also has a search box on the top that helps you in finding commands or keybindings. Supports all common languages. This page lists the default command shortcuts for the General profile, which you might have chosen when you installed Visual Studio. Now, let’s follow tradition by starting with the basics and working our way to more advanced concepts as we go along. Ctrl+Alt+Insert to override the base class This shortcut key is also the part of project-related Visual Studio. Use them. Ctrl + P. Quick Open. Here’s a somewhat contrived example: It’s a bit easier on the eyes when there’s some space between the comment marks and the content. GreenSock Cheat Sheet Cheese sheet of TweenMAX, TweenLite, TimelineLite, TimelineMax by GreenSock. Visual Studio では、クラスやメソッドなどのコード要素を文書化しやすいように、標準的な XML ドキュメント コメント構造を自動的に生成できます。 Visual Studio can help you document code elements such as classes and methods, by automatically generating the standard XML documentation comment structure. All rights reserved, How to debug in visual studio? I’ll admit, it’s a bit easier on the eyes. GreenSock Cheat Sheet. Let’s compare these to external comments and learn more shortcuts while we’re at it! The external stuff is often critical for users. This first screenshot shows a blue vertical line where I’ve “Alt-Selected” the space between two columns. Now, the comments for the team come in the form of commit comments, review comments, and work item comments. Other types of comments include work item comments, which aren’t really accessible in VS. Let’s consider that your consumers—developers—are under pressure to deliver. Azure DevOps. It’s fairly easy to place a comment on a single method with Visual Studio. Installation. ⇧⌘P, F1 Show Command Palette ⌘P Quick Open, Go to File… ⇧⌘N New window/instance ⌘W ⌘Close window/instance ⌘, User Settings ⌘K Keyboard Shortcuts⌘S Basic Go to editing ⌘X Cut line (empty selection) ⌘C Copy line (empty selection) ⌥↓ / ⌥↑ Move line down/up ⇧⌥↓ / ⇧⌥↑ Copy line down/up ⇧⌘K Delete line ⌘Enter / ⇧⌘Enter Insert line below/above � I’m going to stick to defaults, but later in this post, I’ll show you how to change those. Visual Studioで複数行をまとめて一括コメントアウトする方法 1.コメントアウトしたい行を選択します。 2.Ctrl + Kを押します。 3.ステータスバーに「2番目のキーを待っています」と表示されたら、キーボードのCを押します。 You never know when you might have to reinitialize your developer box. Maybe you’ll see some quippy things like “why did we do it this way?” But often there are notes about pending work like “NEEDFIX:” or “TODO:” comments. At the time of development, they have an IDE, your API, and a browser. This is where I’ll insert more comment characters with a space. General Shortcuts On macOS Visual Studio Code version 1.36.1 (2019) To auto-format the selection, use ⌘K ⌘F (the trick is that this is to be done in sequence, ⌘K first, followed by ⌘F). ... Im ersten Teil der Serie zu Microsoft Visual Studio Code haben wir uns die Abgrenzung zu Integrated Development Environments wie Visual Studio auf der einen Seite … Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. Visual Studio Code can be used with many programming languages. They’re using some code you created and packaged for their consumption. Visual Studio Code Keyboard Shortcuts This is the Visual Studio Code default keyboard shortcut list. Here’s a trick for commenting multiple lines at once with a space, though. Here's a list of what we're going to go through: 1. Yes, you can type on multiple lines at once using Visual Studio, here is the shortcut of this : Shift + Alt + ↑ / ↓ (use up arrow to select upper code lines from current selected line, and down arraow to select lower code lines)eval(ez_write_tag([[336,280],'qawithexperts_com-medrectangle-4','ezslot_1',109,'0','0'])); "Ctrl+Shift+B" shortcut will build your solution, which is widely used by C#/.NET developers. The comment shortcut will also lay down comments on a single line or multiple lines. And to round it out, the mapping for uncommenting is Ctrl+K, Ctrl+U. Those are the keystrokes. Toggle line comment 2 ↑ Shift + Alt + A: Toggle block comment 0. Emmet in Visual Studio Code. On this page you can search for codes collectively. Use them. STRG+K, B (Visual Studio 2019) Ctrl+K, B (Visual Studio 2019) STRG+B (Visual Studio 2017) Ctrl+B (Visual Studio 2017) Debug.GoToPreviousCallorIntelliTraceEvent Debug.GoToPreviousCallorIntelliTraceEvent: STRG+UMSCHALT+F11 Ctrl+Shift+F11: Debug.Graphics.StartDiagnostics Debug.Graphics.StartDiagnostics: ALT+F5 Alt+F5: Debug.Immediate … Now, Visual Studio knows how to comment in several languages. But at least you can map the shortcuts that are available, as we’ll see next. 23. visual studio code command palette. ファイル内検索 Visual Studio Codeはテキスト検索の際に、その範囲をファイル内、選択テキスト内、フォルダ内で行うことができます。まずは基本のファイル内検索を説明します。 ファイル内でテキスト検索するには、ショートカットキーの[Ctrl]+[F]で検索ウィジェットを … The project Visual Studio code shortcut keys are very useful if you are working on a big project and repositories. Alt + Z: Toggle word wrap ... MS Visual Studio Code needs a keyboard shortcut for erasing the terminal window output area. Look in Environment > Keyboard and you’ll see the following dialog: I’ve filtered the commands by typing “Comment” into the text box. It’s free, open-source, and available for Windows, Linux, and macOS. The most basic shortcut for creating a comment is Ctrl+K, Ctrl+C. Add handy shortcuts to your status bar. These are usually done in the If you want to know more about it, let us know in the comments below. You can close Visual Studio Completly by clicking Alt+f4eval(ez_write_tag([[300,250],'qawithexperts_com-large-leaderboard-2','ezslot_4',112,'0','0'])); To open team explorer home page click: Ctrl + ', Simplet click "Ctrl+Enter" to insert blank line above current cursor position. You will find these shortcuts very helpful in your daily life coding. Often, I’ll pop into some documentation via my mobile device just to explore an API. Ctrl+K, Ctrl+D : Allows you to automatically re-format the current selected document. Comments with space for readability. This, of course, is the default shortcut for Edit.CommentSelection, which can be mapped to whatever you’d like. From there, all you have to do is fill in the useful details. General Shortcuts. Some comments are for internal development and others are for external developers: AKA consumers. Windows; Jump to: General Shortcuts, Editing Shortcuts, Navigation Shortcuts, Search and Replace, MutiCursor and Selection, Rich Language Editing, Editor Management, File Management, Display, Debug, Integrated Terminal. For example, click "Ctrl+Space, Ctrl+Space". Lets jump into content directly. I find those shortcuts to be pretty annoying, as they require me to use both hands to press those key combinations. Ctrl+K Ctrl+C Add line comment Ctrl+K Ctrl+U Remove line comment Ctrl+/ Toggle line comment Shift+Alt+A Toggle block comment Alt+Z Toggle word wrap Navigation Ctrl+T Show all Symbols Ctrl+G Go to Line... Ctrl+P Go to File... Ctrl+Shift+O Go to Symbol... Ctrl+Shift+M Show Problems panel F8 Go to next error or warning Visual Studio does have keyboard shortcuts for Comment and Uncomment, but they are the unfortunate double-shortcut combinations: Ctrl+K, Ctrl+C to comment, and Ctrl+K, Ctrl+U to uncomment. Now we have click on the trash can, "Kill Terminal", to get a clean slate.