Menu

Tips and tricks

Sergey Chelnokov
  • How to make "python" shortcut for REPL:
    <item name="command" value="python|[C-:]replb {s:python;e:utf-8;i:>>>}python -i[cr]"/>
  • How to show colored changes of current file: !{s:diff}git diff %f%

  • Who touched this line last: !!!!git blame %f% -L %l%,%l%

  • How to show current file path: !!!echo %f%

  • How work with MSBuild *.proj files like with xml:
    <item name="syntax:*.proj;*.csproj" value="xml (debug)"/> <item name="forcedSnippets:*.proj;*.csproj" value="xml"/>

  • How to use different indentation styles for different languages:
    <item name="spacesInsteadTabs" value="false"/><-- use tabs for all unfiltered --> <item name="spacesInsteadTabs:*.py" value="true"/><-- use spaces for python -->
  • How to use jshint:
    <item name="afterSaveCommand:*.js" value="!?^jshint %f%"/>
  • How to open external git console by one key:
    <item name="f8Command" value='!!"C:\Program Files\Git\bin\sh.exe" --login -i'/>
  • How to calculate expression by Tab key after '=' (Ctrl+Shift+P, 'Preferences\Edit snippet file…'):
    snippet = action: [C-:]<echo =&set /a "%s%"[cr][C-[]kJA
  • How to XXX:
  • Search in current top menu (Ctrl+Shift+P)
  • Text search in help/vi-mode help (F1/Shift+F1)
  • Search in ? submenu
  • Search in this wiki/REAMDE
  • Post question in issues

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.