0
0

More than 1 year has passed since last update.

マイチートシート

Posted at

//---------------------------------
// サクラエディタ
//---------------------------------

【右端で折り返さない】
「設定」→「タイプ別設定」→「スクリーン」タブ→「レイアウト」→折り返し方法→折り返さない

【URLリンク外し】
設定→タイプ別設定→カラー→URLのチェックを外す

【パスリンク外し】
設定→タイプ別設定→正規表現キーワード→色指定「URL」のキーワードを色指定「テキスト」に変更

【ダブルクリック起動、アプリケーション関連付け】
設定→タイプ別設定一覧→左ペインから関連付けたい拡張子選択
→「右クリックメニューに追加」をチェック済みにする。「ダブルクリックで開く」をチェック済みにする。

【マクロ、スクリプト】
1.マクロ配置

format_clean.mac
ReplaceAll('[  \\t]+$', '', 36);	// すべて置換
ReDraw(0);	// 再描画

2.マクロ登録
「設定」>「共通設定」>「マクロ」
参照ボタン:マクロファイルのある場所を指定
名前:登録するマクロ名を決める
Fileプルダウン:マクロファイルを選択

3.マクロ使用
「ツール」>「登録済みマクロ」

 

//---------------------------------
// PowerShell
//---------------------------------

【batで実行】

ps実行.bat
powershell -ExecutionPolicy RemoteSigned -File "C:\script\sample.ps1"

 

//---------------------------------
// git-bash
//---------------------------------
【テキストファイル分割】
cd /C/mydir
split -l 100000 -d bigfile.txt bigfile.txt.

【テキストファイル末尾取得】
cd /C/mydir
tail -n 100000 bigfile.txt > bigfile.txt.tail

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0