Editing Gedit
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
== Code comment == | == Code comment == | ||
One of the most useful plugins is '''code comment''' which allows to comment/uncomment several lines of code at the same. Simply select the lines and press | One of the most useful plugins is '''code comment''' which allows to comment/uncomment several lines of code at the same. Simply select the lines and press '''Ctr+M''' to comment and '''Shift+Ctr+M''' to uncomment. There's one limitation though. While the syntax correctly recognizes both <code>%</code> and <code>#</code> as comment characters, the plugin must use only one. By default it uses <code>#</code>. If you want to change it to <code>%</code>, edit the file with the syntax highlight rule and in the metadata field change the value of ''line-comment-start'': | ||
<property name="line-comment-start">#</property> | <property name="line-comment-start">#</property> | ||
Line 27: | Line 27: | ||
> bottom.remove_item(self._panel) | > bottom.remove_item(self._panel) | ||
Basically replace | Basically replace '''window.get_bottom_panel()''' with '''window.get_side_panel()'''. You might want to replace the '''side''' varname to '''bottom''' but that is not actually necessary. The same hack can be used on other plugins to move them between the panels. | ||
== File Browser on side panel == | == File Browser on side panel == |