\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{MATH Academy (MATH Academy)} \pdfinfo{ /Title (notepad.pdf) /Creator (Cheatography) /Author (MATH Academy (MATH Academy)) /Subject (Notepad++ Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{2B3E50} \definecolor{LightBackground}{HTML}{F8F8F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Notepad++ Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{MATH Academy (MATH Academy)} via \textcolor{DarkBackground}{\uline{cheatography.com/80385/cs/19377/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}MATH Academy (MATH Academy) \\ \uline{cheatography.com/math-academy} \\ \uline{\seqsplit{www}.math-ac.com/} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 17th April, 2019.\\ Updated 17th April, 2019.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ctrl-O & Open File \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl-N & New File \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Ctrl-S & Save File \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{Ctrl-Alt-S} & Save As \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{Ctrl-Shift-S} & Save All \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} Ctrl-P & Print \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} Alt-F4 & Exit \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-Tab & Next Document (also shows list of open files). Can be disabled - see \seqsplit{Settings/Preferences/Global} \tn % Row Count 14 (+ 4) % Row 9 \SetRowColor{white} \seqsplit{Ctrl-Shift-Tab} & Previous Document (also shows list of open files). Can be disabled - see above \tn % Row Count 17 (+ 3) % Row 10 \SetRowColor{LightBackground} \seqsplit{Ctrl-Numpadn} & Go to the n-th document on tab bar, n between 1 and 9 \tn % Row Count 19 (+ 2) % Row 11 \SetRowColor{white} Ctrl-PgUp & Next document \tn % Row Count 20 (+ 1) % Row 12 \SetRowColor{LightBackground} Ctrl-PgDn & Previous document \tn % Row Count 21 (+ 1) % Row 13 \SetRowColor{white} Ctrl-W & Close Current Document \tn % Row Count 22 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{View menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{Ctrl-(Keypad-/Keypad+)} & or Ctrl + mouse wheel button (if any) Zoom in (+ or up) and Zoom out (- or down) \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} Ctrl-Keypad/ & Restore the original size from zoom \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} F11 & Toggle Full Screen Mode \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} F12 & Toggle Post-It Mode \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} Ctrl-Alt-F & Collapse the Current Level \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{Ctrl-Alt-Shift-F} & Uncollapse the Current Level \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} Alt-0 & Fold All \tn % Row Count 13 (+ 1) % Row 8 \SetRowColor{LightBackground} Alt-(1\textasciitilde{}8) & Collapse the Level (1\textasciitilde{}8) \tn % Row Count 14 (+ 1) % Row 9 \SetRowColor{white} Alt-Shift-0 & Unfold All \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} Alt-Shift-(1\textasciitilde{}8) & Uncollapse the Level (1\textasciitilde{}8) \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{? menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} F1 & About \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Shift+F1 & Help Contents \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Edit Menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-C & Copy \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl-Insert & Copy \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Ctrl-Shift-T & Copy current line to clipboard \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} Ctrl-X & Cut \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} Shift-Delete & Cut \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-V & Paste \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} Shift-Insert & Paste \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-Z & Undo \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} Alt-Backspace & Undo \tn % Row Count 11 (+ 1) % Row 10 \SetRowColor{LightBackground} Ctrl-Y & Redo \tn % Row Count 12 (+ 1) % Row 11 \SetRowColor{white} Ctrl-A & Select All \tn % Row Count 13 (+ 1) % Row 12 \SetRowColor{LightBackground} Alt-Shift-Arrow keys, or Alt + Left mouse click & Column Mode Select \tn % Row Count 16 (+ 3) % Row 13 \SetRowColor{white} Ctrl + Left mouse click & Start new selected area. Only multiple stream areas can be selected this way. \tn % Row Count 20 (+ 4) % Row 14 \SetRowColor{LightBackground} ALT-C & Column Editor \tn % Row Count 21 (+ 1) % Row 15 \SetRowColor{white} Ctrl-D & Duplicate Current Line \tn % Row Count 23 (+ 2) % Row 16 \SetRowColor{LightBackground} Ctrl-T & Switch the current line position with the previous line position \tn % Row Count 27 (+ 4) % Row 17 \SetRowColor{white} Ctrl-Shift-Up & Move Current Line, or current selection if a single stream, Up \tn % Row Count 31 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Edit Menu (cont)}} \tn % Row 18 \SetRowColor{LightBackground} Ctrl-Shift-Down & Move Current Line, or current selection if a single stream, Down \tn % Row Count 4 (+ 4) % Row 19 \SetRowColor{white} Ctrl-L & Delete Current Line \tn % Row Count 5 (+ 1) % Row 20 \SetRowColor{LightBackground} Ctrl-I & Split Lines \tn % Row Count 6 (+ 1) % Row 21 \SetRowColor{white} Ctrl-J & Join Lines \tn % Row Count 7 (+ 1) % Row 22 \SetRowColor{LightBackground} Ctrl-G & Launch GoToLine Dialog \tn % Row Count 9 (+ 2) % Row 23 \SetRowColor{white} Ctrl-Q & Single line comment \tn % Row Count 10 (+ 1) % Row 24 \SetRowColor{LightBackground} Ctrl-Shift-Q & Single line uncomment \tn % Row Count 12 (+ 2) % Row 25 \SetRowColor{white} Ctrl-K & Toggle single line comment \tn % Row Count 14 (+ 2) % Row 26 \SetRowColor{LightBackground} Ctrl-Shift-K & Block comment \tn % Row Count 15 (+ 1) % Row 27 \SetRowColor{white} Tab (selection of one or more full lines) & Insert Tabulation or Space (Indent) \tn % Row Count 18 (+ 3) % Row 28 \SetRowColor{LightBackground} Shift-Tab (selection of one or more full lines) & Remove Tabulation or Space (outdent) \tn % Row Count 21 (+ 3) % Row 29 \SetRowColor{white} Ctrl-BackSpace & Delete to start of word \tn % Row Count 23 (+ 2) % Row 30 \SetRowColor{LightBackground} Ctrl-Delete & Delete to end of word \tn % Row Count 25 (+ 2) % Row 31 \SetRowColor{white} \seqsplit{Ctrl-Shift-BackSpace} & Delete to start of line \tn % Row Count 27 (+ 2) % Row 32 \SetRowColor{LightBackground} Ctrl-Shift-Delete & Delete to end of line \tn % Row Count 29 (+ 2) % Row 33 \SetRowColor{white} Ctrl-U & Convert to lower case \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Edit Menu (cont)}} \tn % Row 34 \SetRowColor{LightBackground} Ctrl-Shift-U & Convert to UPPER CASE \tn % Row Count 2 (+ 2) % Row 35 \SetRowColor{white} Ctrl-B & Go to matching brace \tn % Row Count 3 (+ 1) % Row 36 \SetRowColor{LightBackground} Ctrl-Space & Launch CallTip ListBox \tn % Row Count 5 (+ 2) % Row 37 \SetRowColor{white} Ctrl-Shift-Space & Launch Function Completion ListBox \tn % Row Count 7 (+ 2) % Row 38 \SetRowColor{LightBackground} Ctrl-Alt-Space & Launch Path Completion ListBox \tn % Row Count 9 (+ 2) % Row 39 \SetRowColor{white} Ctrl-Enter & Launch Word Completion ListBox \tn % Row Count 11 (+ 2) % Row 40 \SetRowColor{LightBackground} Ctrl-Alt-R & Text Direction RTL \tn % Row Count 12 (+ 1) % Row 41 \SetRowColor{white} Ctrl-Alt-L & Text Direction LTR \tn % Row Count 13 (+ 1) % Row 42 \SetRowColor{LightBackground} Enter & Split line downwards, or create new line \tn % Row Count 15 (+ 2) % Row 43 \SetRowColor{white} Shift-Enter & Split line downwards, or create new line \tn % Row Count 17 (+ 2) % Row 44 \SetRowColor{LightBackground} Ctrl-Alt-Enter & Insert new unintended line above current \tn % Row Count 19 (+ 2) % Row 45 \SetRowColor{white} \seqsplit{Ctrl-Alt-Shift-Enter} & Insert new unintended line below current \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.4931 cm} x{3.4839 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Search menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-H & Launch Find / Replace Dialog \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl-F & Launch Find Dialog \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} F3 & Find Next \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Shift-F3 & Find Previous \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{Ctrl-Shift-F} & Find in Files \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} F7 & Switch to Search results window (was Activate sub view before v5.2) \tn % Row Count 9 (+ 3) % Row 7 \SetRowColor{white} Ctrl-Alt-F3 & Find (volatile) Next \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} \seqsplit{Ctrl-Alt-Shift-F3} & Find (volatile) Previous \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} Ctrl-F3 & Select and Find Next (was Find (Volatile) Next prior to v5.6.5) \tn % Row Count 15 (+ 3) % Row 10 \SetRowColor{LightBackground} \seqsplit{Ctrl-Shift-F3} & Select and Find Previous (was Find (Volatile) Previous prior to v5.6.5) \tn % Row Count 18 (+ 3) % Row 11 \SetRowColor{white} F4 & Go to next found \tn % Row Count 19 (+ 1) % Row 12 \SetRowColor{LightBackground} Shift-F4 & Go to previous found \tn % Row Count 20 (+ 1) % Row 13 \SetRowColor{white} \seqsplit{Ctrl-Shift-I} & Incremental Search \tn % Row Count 21 (+ 1) % Row 14 \SetRowColor{LightBackground} Ctrl-n & Jump Down (to next text marked using n-th stye. n is 1 to 5, or 0 for default Found style. \tn % Row Count 25 (+ 4) % Row 15 \SetRowColor{white} \seqsplit{Ctrl-Shift-n} & Jump Up (to next text marked using n-th stye. n is 1 to 5, or 0 for default Found style. \tn % Row Count 29 (+ 4) % Row 16 \SetRowColor{LightBackground} Ctrl-F2 & Toggle Bookmark \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.4931 cm} x{3.4839 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Search menu (cont)}} \tn % Row 17 \SetRowColor{LightBackground} F2 & Go To Next Bookmark \tn % Row Count 1 (+ 1) % Row 18 \SetRowColor{white} Shift-F2 & Go To Previous Bookmark \tn % Row Count 2 (+ 1) % Row 19 \SetRowColor{LightBackground} Ctrl-B & Go to Matching Brace (caret must be on a brace) \tn % Row Count 4 (+ 2) % Row 20 \SetRowColor{white} Ctrl-Alt-B & Select All between Matching Braces (caret must be on a brace) \tn % Row Count 7 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Macro menu}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{Ctrl-Shift-R} & Start to record /Stop recording the macro \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Ctrl-Shift-P} & Play recorded macro \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{Alt-Shift-S} & Trim Trailing and Save \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mouse gestures}} \tn % Row 0 \SetRowColor{LightBackground} Shortcut ↓ & Action ↓ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Single left click & Set current line \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Single left click on rightmost status bar pane & Toggle typing mode between Insert and Overtype \tn % Row Count 5 (+ 3) % Row 3 \SetRowColor{white} Single left click on bookmark margin & Toggle bookmark \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Shift+left click on fold point & Uncollapse this fold and all those below \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Ctrl+left click on fold point & Toggle collapsed state of this fold, and propagate below \tn % Row Count 12 (+ 3) % Row 6 \SetRowColor{LightBackground} Right click & Pop up context menu \tn % Row Count 13 (+ 1) % Row 7 \SetRowColor{white} Double left click & Select word \tn % Row Count 14 (+ 1) % Row 8 \SetRowColor{LightBackground} Double left click on location pane (status bar) & Go to line \tn % Row Count 17 (+ 3) % Row 9 \SetRowColor{white} Triple left click & Select line \tn % Row Count 18 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}